public final class LogManager extends LogManager
| Modifier and Type | Field and Description |
|---|---|
static String |
PER_THREAD_LOG_FILTER_KEY |
LOGGING_MXBEAN_NAME| Constructor and Description |
|---|
LogManager()
Construct a new logmanager instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addLogger(Logger logger)
Do nothing.
|
void |
addPropertyChangeListener(PropertyChangeListener l)
Do nothing.
|
Logger |
getLogger(String name)
Get or create a logger with the given name.
|
Enumeration<String> |
getLoggerNames() |
String |
getProperty(String name)
Does nothing.
|
static Filter |
getThreadLocalLogFilter()
Returns the currently set filter for this thread or
null if one has not been set. |
void |
readConfiguration()
Configure the log manager one time.
|
void |
readConfiguration(InputStream inputStream)
Configure the log manager.
|
void |
removePropertyChangeListener(PropertyChangeListener l)
Do nothing.
|
void |
reset()
Does nothing.
|
static void |
setThreadLocalLogLevel(Filter filter)
Sets the filter on the thread for all loggers.
|
checkAccess, getLoggingMXBean, getLogManagerpublic static final String PER_THREAD_LOG_FILTER_KEY
public LogManager()
Level as
well.public void readConfiguration()
throws IOException,
SecurityException
ConfigurationLocator is created by constructing an
instance of the class name specified in the org.jboss.logmanager.configurationLocator system property.readConfiguration in class LogManagerIOExceptionSecurityExceptionpublic void readConfiguration(InputStream inputStream) throws IOException, SecurityException
readConfiguration in class LogManagerinputStream - the input stream from which the logmanager should be configuredIOExceptionSecurityExceptionpublic void addPropertyChangeListener(PropertyChangeListener l)
addPropertyChangeListener in class LogManagerl - ignoredpublic void removePropertyChangeListener(PropertyChangeListener l)
removePropertyChangeListener in class LogManagerl - ignoredpublic String getProperty(String name)
getProperty in class LogManagername - ignorednullpublic void reset()
reset in class LogManagerpublic Enumeration<String> getLoggerNames()
getLoggerNames in class LogManagerpublic boolean addLogger(Logger logger)
getLogger(String).addLogger in class LogManagerlogger - ignoredfalsepublic Logger getLogger(String name)
getLogger in class LogManagername - the logger namepublic static Filter getThreadLocalLogFilter()
null if one has not been set.
If the PER_THREAD_LOG_FILTER_KEY is not set to true then null will always be returned.
null if no level was setpublic static void setThreadLocalLogLevel(Filter filter)
This feature only works if the PER_THREAD_LOG_FILTER was set to true
filter - the filter to set for all loggers on this threadCopyright © 2017 JBoss by Red Hat. All rights reserved.