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 for FileServiceLog which is a default/fallback PaxLogger
that writes to single FileOutputStream.
| Constructor and Description |
|---|
FallbackLogFactory() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanup()
Because
FallbackLogFactory may be Private-Packaged in all the backends (and in pax-logging-api too),
each bundle has to call cleanup() in it's BundleActivator.stop(BundleContext). |
static PaxLogger |
createFallbackLog(org.osgi.framework.Bundle requestingBundle,
String categoryName)
Create
PaxLogger that doesn't delegate to logger from specific
PaxLoggingService. |
public static PaxLogger createFallbackLog(org.osgi.framework.Bundle requestingBundle, String categoryName)
PaxLogger that doesn't delegate to logger from specific
PaxLoggingService.requestingBundle - a bundle requesting fallback logger that'll be used when we can't detect better onecategoryName - public static void cleanup()
FallbackLogFactory may be Private-Packaged in all the backends (and in pax-logging-api too),
each bundle has to call cleanup() in it's BundleActivator.stop(BundleContext).Copyright © 2006–2020 OPS4J - Open Participation Software for Java. All rights reserved.