kassner / log-parser

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

Update PCRE pattern after LogParser::addPattern() #60

Closed kassner closed 1 year ago

kassner commented 1 year ago

This allows addPattern and setFormat to be called in any order. No user should expect performance issues unless they're re-using/re-creating the LogParser instance at every row, which is somewhat counter intuitive.