Implement Custom Logger with slf4j

Posted by Martin Dürrmeier on Stack Overflow See other posts from Stack Overflow or by Martin Dürrmeier
Published on 2010-04-16T14:49:48Z Indexed on 2010/04/16 14:53 UTC
Read the original article Hit count: 416

Filed under:
|

I want to implement a Custom logger which logs all log entries to a Database. Currently my app logs this way (slf4j and log4j binding):

private static final Logger logger = LoggerFactory.getLogger( MyClass.class );

I'm not sure how to proceed. My Idea is to implement a Custom Logging binding through implementing the org.slf4j.Logger Interface

What would be the next steps? My target is to not change the current code

Links I considered:

http://stackoverflow.com/questions/1770442/java-custom-logger-logging-standards-or-and-best-practices http://www.slf4j.org/manual.html

© Stack Overflow or respective owner

Related posts about java

Related posts about slf4j