Hello! I have an use case that i need to register an appender to the
RootLogger in runtime, but i'm having tons of trouble with that, i've done
it before in a Non-OSGi application by simply getting the Log4j2 context
and adding a appender to the configuration:
1. final LoggerContext context = LoggerContext.getContext(false);
2. final Configuration config = context.getConfiguration();
final Appender appender = createAppender()
config.addApender(appender)
But i can't do that when using pax-logging, the first problem is that the
LoggerContext is not the Apache one, it's the Log4jv2LoggerContext from
pax-logging which does not help me, is there any way i can register an
appender at runtime?
--
--
------------------
OPS4J - http://www.ops4j.org - [email protected]
---
You received this message because you are subscribed to the Google Groups
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.