Class FallbackLogFactory
- java.lang.Object
-
- org.ops4j.pax.logging.spi.support.FallbackLogFactory
-
public class FallbackLogFactory extends Object
This factory creates the fallback strategy when Pax Logging Service is not (yet) available. This class is not part of pax-logging-api, it's in package that's supposed to be Private-Packaged by pax-logging backends. This special care has to be taken when dealing with singletons that can be produced by this factory. The singleton is implemented forFileServiceLogwhich is a default/fallbackPaxLoggerthat writes to singleFileOutputStream.
-
-
Constructor Summary
Constructors Constructor Description FallbackLogFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidcleanup()BecauseFallbackLogFactorymay be Private-Packaged in all the backends (and in pax-logging-api too), each bundle has to callcleanup()in it'sBundleActivator.stop(BundleContext).static PaxLoggercreateFallbackLog(org.osgi.framework.Bundle requestingBundle, String categoryName)CreatePaxLoggerthat doesn't delegate to logger from specificPaxLoggingService.
-
-
-
Method Detail
-
createFallbackLog
public static PaxLogger createFallbackLog(org.osgi.framework.Bundle requestingBundle, String categoryName)
CreatePaxLoggerthat doesn't delegate to logger from specificPaxLoggingService.- Parameters:
requestingBundle- a bundle requesting fallback logger that'll be used when we can't detect better onecategoryName-- Returns:
-
cleanup
public static void cleanup()
BecauseFallbackLogFactorymay be Private-Packaged in all the backends (and in pax-logging-api too), each bundle has to callcleanup()in it'sBundleActivator.stop(BundleContext).
-
-