kassner / log-parser

PHP Web Server Log Parser Library
Apache License 2.0
339 stars 64 forks source link

Improved extendibility with new formats #13

Closed lxg closed 9 years ago

lxg commented 9 years ago

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.

kassner commented 9 years ago

@lxg Sorry for the delay, it is merged now. Thank you for the contribution!