Class SplitLogManager
java.lang.Object
java.util.logging.LogManager
org.jlab.logging.SplitLogManager
LogManager that sends errors to stderr and everything else to stdout- Author:
- dilks
-
Field Summary
Fields inherited from class LogManager
LOGGING_MXBEAN_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanadd a newLoggerinstancestatic voidconfigureHandlers(Logger logger, boolean includePrefix) Configure a logger handlers such that errors go tostderrand everything else tostdoutstatic voidconfigureLevel(Logger logger, Level level) set the log level of a logger and its handlerscreate a newLoggerinstanceMethods inherited from class LogManager
addConfigurationListener, checkAccess, getLoggerNames, getLoggingMXBean, getLogManager, getProperty, readConfiguration, readConfiguration, removeConfigurationListener, reset, updateConfiguration, updateConfiguration
-
Constructor Details
-
SplitLogManager
public SplitLogManager()
-
-
Method Details
-
getLogger
-
addLogger
add a newLoggerinstance- Overrides:
addLoggerin classLogManager- Parameters:
name- the name of the logger- Returns:
trueif the argument logger was registered successfully,falseif a logger of that name already exists
-
configureHandlers
Configure a logger handlers such that errors go tostderrand everything else tostdout- Parameters:
logger- theLoggerinstance to configureincludePrefix- whether or not to include a prefix in the formatting
-
configureLevel
-