java.lang.Object
java.util.logging.LogManager
org.jboss.logmanager.LogManager
Simplified log manager. Designed to work around the (many) design flaws of the JDK platform log manager.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class java.util.logging.LogManager
LOGGING_MXBEAN_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConfigurationListener(Runnable listener) Configuration listeners are not currently supported.booleanDo nothing.Get or create a logger with the given name.getProperty(String name) Does nothing.voidConfigure the system log context initially.voidreadConfiguration(InputStream inputStream) Configure the system log context initially withe given input stream.voidremoveConfigurationListener(Runnable listener) Configuration listeners are not currently supported.voidreset()Does nothing.voidupdateConfiguration(InputStream ins, Function<String, BiFunction<String, String, String>> mapper) Does nothing.voidupdateConfiguration(Function<String, BiFunction<String, String, String>> mapper) Does nothing.Methods inherited from class java.util.logging.LogManager
checkAccess, getLoggingMXBean, getLogManager
-
Constructor Details
-
LogManager
public LogManager()Construct a new logmanager instance. Attempts to plug a known memory leak inLevelas well.
-
-
Method Details
-
readConfiguration
public void readConfiguration()Configure the system log context initially.- Overrides:
readConfigurationin classLogManager
-
readConfiguration
Configure the system log context initially withe given input stream.- Overrides:
readConfigurationin classLogManager- Parameters:
inputStream- ignored
-
updateConfiguration
public void updateConfiguration(Function<String, BiFunction<String, throws IOExceptionString, String>> mapper) Does nothing.- Overrides:
updateConfigurationin classLogManager- Parameters:
mapper- not used- Throws:
IOException
-
updateConfiguration
public void updateConfiguration(InputStream ins, Function<String, BiFunction<String, throws IOExceptionString, String>> mapper) Does nothing.- Overrides:
updateConfigurationin classLogManager- Parameters:
ins- not usedmapper- not used- Throws:
IOException
-
addConfigurationListener
Configuration listeners are not currently supported.- Overrides:
addConfigurationListenerin classLogManager- Parameters:
listener- not used- Returns:
- this log manager
-
removeConfigurationListener
Configuration listeners are not currently supported.- Overrides:
removeConfigurationListenerin classLogManager- Parameters:
listener- not used
-
getProperty
Does nothing. Properties are not supported.- Overrides:
getPropertyin classLogManager- Parameters:
name- ignored- Returns:
null
-
reset
public void reset()Does nothing. This method only causes trouble.- Overrides:
resetin classLogManager
-
getLoggerNames
- Overrides:
getLoggerNamesin classLogManager
-
addLogger
Do nothing. Loggers are only added/acquired viagetLogger(String).- Overrides:
addLoggerin classLogManager- Parameters:
logger- ignored- Returns:
false
-
getLogger
Get or create a logger with the given name.- Overrides:
getLoggerin classLogManager- Parameters:
name- the logger name- Returns:
- the corresponding logger
-