Package org.ops4j.pax.logging
Interface PaxLoggingManagerAwareLogger
-
- All Known Implementing Classes:
AvalonLogger,Category,JBossLoggingLogger,JclLogger,JuliLogger,Log4jv2Logger,Logger,Slf4jLogger
public interface PaxLoggingManagerAwareLoggerInterfaces for loggers that delegate toPaxLogger, so they can switch to non fallbackPaxLoggerwhenPaxLoggingManagerbecomes available.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidsetPaxLoggingManager(PaxLoggingManager manager)Configures aPaxLoggingManagerthat from now on can be used toobtain a non-fallback loggerthat given logger is delegating to.
-
-
-
Method Detail
-
setPaxLoggingManager
void setPaxLoggingManager(PaxLoggingManager manager)
Configures aPaxLoggingManagerthat from now on can be used toobtain a non-fallback loggerthat given logger is delegating to. This method is called in activator of pax-logging-api to ensure that loggers that may already been created from pax-logging adjusted facades/factories actually delegate to realPaxLoggingService. This is especially visible in pax-exam tests, where pax-logging-api's SLF4J classes are already used by pax-exam itself before even starting OSGi framework.
-
-