[logback-user] Logback - adding appenders
Jan Moravec
jan.moravec at simplylance.com
Tue May 15 12:40:37 CEST 2012
Hi,
I am building a JVM agent that needs to programmatically register a logback
appender to intercept logging messages from a web-application(s) running on
the given JVM. By using the JVM agent I can avoid modifying the
web-application's code & configuration. To make this work, I need to use
byte-code instrumentation and in the class-loading phase modify some logback
class(es) and inject my code that instantiates my (interception) appender
and adds it to list of appenders associated with the root logger. What would
be the best logback API class and method to instrument?
Ideally it should be a class and method that:
. Is called once upon every logback (re)initialization
. Has been present in older logback versions.
. Is public, stable and is not likely to disappear in future logback
releases.
Thank you,
Jan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-user/attachments/20120515/65a38ec2/attachment.html>
More information about the Logback-user
mailing list