Re: Chainsaw log-parsing classes

2018-01-20 Thread Scott Deboy
Yeah - good idea. Here's the code Chainsaw uses to grab a log4j XML config's FileAppender definition, including the PatternLayout, and build what's needed to process the log messages going in to the target file. BTW this is also how the log4j2 Advertiser integrates with Chainsaw.

Re: Chainsaw log-parsing classes

2018-01-20 Thread Mikael Ståldal
Maybe we could take some code from Chainsaw and implement a LogEventParser for Log4j 2? https://github.com/apache/logging-log4j2/blob/master/log4j-core/src/main/java/org/apache/logging/log4j/core/parser/TextLogEventParser.java On 2018-01-19 17:00, Scott Deboy wrote: Here's info on how you

Re: Chainsaw log-parsing classes

2018-01-20 Thread Mikael Ståldal
FWIW, Log4j 2's log4j-core has an API to parse the output of JsonLayout, XmlLayout and YamlLayout: https://github.com/apache/logging-log4j2/tree/master/log4j-core/src/main/java/org/apache/logging/log4j/core/parser On 2018-01-19 16:32, Joseph Husby wrote: Hello! I’m working on a project