mcross1882 / LogAnalyzer

Log analyzer and summary builder written in Scala built for JVM projects
Apache License 2.0
0 stars 1 forks source link

Implement named variables #1

Closed mcross1882 closed 10 years ago

mcross1882 commented 10 years ago

Add the ability to extract regex text with named variables. For example a sample analyzer with this functionality would look like this...

Current

<analyzer category="Emergency" regex="Emergency: (.*)">
  - %s: %d
</analyzer>

Expected

<analyzer category="Emergency" regex="Emergency: (.*)$exceptionName">
  - $exceptionName: $count
</analyzer>

This should also improve the existing logic too extract multiple subsets. Right now you can only extract one text subset and an implicit count value is passed in too the formatter.