public class JulLogManager extends LogManager
LogManager delegating to SLF4J / LogBack.LOGGING_MXBEAN_NAME| Constructor and Description |
|---|
JulLogManager()
Creates the
JulLogManager. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLogger(Logger logger)
Add a named logger.
|
void |
addPropertyChangeListener(PropertyChangeListener l)
Not supported.
|
Logger |
getLogger(String name)
Method to find a named logger.
|
Enumeration<String> |
getLoggerNames()
Get an enumeration of known logger names.
|
String |
getProperty(String name)
Return always
null because we don't store properties. |
void |
readConfiguration()
Does nothing as the configuration is delegated to LogBack.
|
void |
readConfiguration(InputStream inputStream)
Does nothing as the configuration is delegated to LogBack.
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Not supported.
|
void |
reset()
Not Supported.
|
checkAccess, getLoggingMXBean, getLogManagerpublic JulLogManager()
JulLogManager.public Logger getLogger(String name)
getLogger in class LogManagername - name of the loggerpublic void readConfiguration()
throws IOException,
SecurityException
readConfiguration in class LogManagerIOException - cannot be thrownSecurityException - cannot be thrownpublic void readConfiguration(InputStream inputStream) throws IOException, SecurityException
readConfiguration in class LogManagerIOException - cannot be thrownSecurityException - cannot be thrownpublic void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener in class LogManagerl - the listenerpublic void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener in class LogManagerl - the listenerpublic String getProperty(String name)
null because we don't store properties.getProperty in class LogManagername - the property's namenullpublic Enumeration<String> getLoggerNames()
Note: Loggers may be added dynamically as new classes are loaded. This method only reports on the loggers that are currently registered. It is also important to note that this method only returns the name of a Logger, not a strong reference to the Logger itself.
This method asks Logback to retrieve the list of known loggers. The names are retrieved when this method is called, so loggers created after this call are not listed.
getLoggerNames in class LogManagerpublic boolean addLogger(Logger logger)
The Logger factory methods call this method to register each newly created Logger.
This method does not store the logger, so just returns true if the logger did not already exist.
addLogger in class LogManagerlogger - the new logger.public void reset()
reset in class LogManagerCopyright © 2009–2014 OW2 Chameleon. All rights reserved.