I've added a bit of code to improve the extendibility of LogParser. Callers can now add own patterns with the addPattern method. Also, derived classes can override the constructor without knowing the default format – they can get the default format with LogParser::getDefaultFormat() now.
I've added a bit of code to improve the extendibility of LogParser. Callers can now add own patterns with the
addPattern
method. Also, derived classes can override the constructor without knowing the default format – they can get the default format withLogParser::getDefaultFormat()
now.