public class LoggingConfiguration extends Object
| Modifier and Type | Method and Description |
|---|---|
static LoggingConfiguration |
getInstance()
Method to retrieve an instance of the logging configuration.
|
void |
register(org.osgi.service.cm.ManagedService managedService,
org.osgi.service.cm.Configuration configuration)
This method will configure the logging framework with the log4j2 configuration.
|
public static LoggingConfiguration getInstance()
public void register(org.osgi.service.cm.ManagedService managedService,
org.osgi.service.cm.Configuration configuration)
throws IOException,
org.osgi.service.cm.ConfigurationException
managedService - managed service instance to configure pax loggingFileNotFoundException - this is thrown if the logging config file is not found at the carbon default
conf/etc locationorg.osgi.service.cm.ConfigurationException - this is thrown if any error occurred while update of config admin service
properties for pax-logging is being invoked.IOExceptionCopyright © 2016 WSO2. All rights reserved.