Logback to log different messages to two files

Posted by Aly on Stack Overflow See other posts from Stack Overflow or by Aly
Published on 2010-03-21T20:18:45Z Indexed on 2010/03/21 20:21 UTC
Read the original article Hit count: 629

Filed under:
|
|
|
|

I am using logback/slf4j to do my logging. I want to parse my log file to analyze some data, so instead of parsing a great big file (mostly consisting of debug statements) I want to have two logger instances which each log to a separate file; one for analytics and one for all purpose logging. Does anyone know if this is possible with Logback, or any other logger for that matter?

© Stack Overflow or respective owner

Related posts about java

Related posts about logging