public final class LogManager
extends java.util.logging.LogManager
Modifier and Type | Field | Description |
---|---|---|
static java.lang.String |
PER_THREAD_LOG_FILTER_KEY |
Constructor | Description |
---|---|
LogManager() |
Construct a new logmanager instance.
|
Modifier and Type | Method | Description |
---|---|---|
java.util.logging.LogManager |
addConfigurationListener(java.lang.Runnable listener) |
Configuration listeners are not currently supported.
|
boolean |
addLogger(java.util.logging.Logger logger) |
Do nothing.
|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l) |
Do nothing.
|
Logger |
getLogger(java.lang.String name) |
Get or create a logger with the given name.
|
java.util.Enumeration<java.lang.String> |
getLoggerNames() |
|
java.lang.String |
getProperty(java.lang.String name) |
Does nothing.
|
static java.util.logging.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(java.io.InputStream inputStream) |
Configure the log manager.
|
void |
removeConfigurationListener(java.lang.Runnable listener) |
Configuration listeners are not currently supported.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l) |
Do nothing.
|
void |
reset() |
Does nothing.
|
static void |
setThreadLocalLogLevel(java.util.logging.Filter filter) |
Sets the filter on the thread for all loggers.
|
void |
updateConfiguration(java.io.InputStream ins,
java.util.function.Function<java.lang.String,java.util.function.BiFunction<java.lang.String,java.lang.String,java.lang.String>> mapper) |
Does nothing.
|
void |
updateConfiguration(java.util.function.Function<java.lang.String,java.util.function.BiFunction<java.lang.String,java.lang.String,java.lang.String>> mapper) |
Does nothing.
|
public static final java.lang.String PER_THREAD_LOG_FILTER_KEY
public LogManager()
Level
as
well.public void readConfiguration() throws java.io.IOException, java.lang.SecurityException
ConfigurationLocator
is created by constructing an
instance of the class name specified in the org.jboss.logmanager.configurationLocator
system property.readConfiguration
in class java.util.logging.LogManager
java.io.IOException
java.lang.SecurityException
public void readConfiguration(java.io.InputStream inputStream) throws java.io.IOException, java.lang.SecurityException
readConfiguration
in class java.util.logging.LogManager
inputStream
- the input stream from which the logmanager should be configuredjava.io.IOException
java.lang.SecurityException
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
l
- ignoredpublic void removePropertyChangeListener(java.beans.PropertyChangeListener l)
l
- ignoredpublic void updateConfiguration(java.util.function.Function<java.lang.String,java.util.function.BiFunction<java.lang.String,java.lang.String,java.lang.String>> mapper) throws java.io.IOException
updateConfiguration
in class java.util.logging.LogManager
mapper
- not usedjava.io.IOException
public void updateConfiguration(java.io.InputStream ins, java.util.function.Function<java.lang.String,java.util.function.BiFunction<java.lang.String,java.lang.String,java.lang.String>> mapper) throws java.io.IOException
updateConfiguration
in class java.util.logging.LogManager
ins
- not usedmapper
- not usedjava.io.IOException
public java.util.logging.LogManager addConfigurationListener(java.lang.Runnable listener)
addConfigurationListener
in class java.util.logging.LogManager
listener
- not usedpublic void removeConfigurationListener(java.lang.Runnable listener)
removeConfigurationListener
in class java.util.logging.LogManager
listener
- not usedpublic java.lang.String getProperty(java.lang.String name)
getProperty
in class java.util.logging.LogManager
name
- ignorednull
public void reset()
reset
in class java.util.logging.LogManager
public java.util.Enumeration<java.lang.String> getLoggerNames()
getLoggerNames
in class java.util.logging.LogManager
public boolean addLogger(java.util.logging.Logger logger)
getLogger(String)
.addLogger
in class java.util.logging.LogManager
logger
- ignoredfalse
public Logger getLogger(java.lang.String name)
getLogger
in class java.util.logging.LogManager
name
- the logger namepublic static java.util.logging.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(java.util.logging.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 © 2018. All rights reserved.