Package org.yamcs.logging
Class YamcsLogManager
- java.lang.Object
-
- java.util.logging.LogManager
-
- org.yamcs.logging.YamcsLogManager
-
public class YamcsLogManager extends LogManager
Customized version ofLogManagerso that we can keep logging from within shutdown hooks.This LogManager must be activated early via a JVM property
java.util.logging.manager
-
-
Field Summary
-
Fields inherited from class java.util.logging.LogManager
LOGGING_MXBEAN_NAME
-
-
Constructor Summary
Constructors Constructor Description YamcsLogManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreset()Does nothing.static LogManagersetup(InputStream inputStream)static voidshutdown()Reset the logging configuration-
Methods inherited from class java.util.logging.LogManager
addConfigurationListener, addLogger, checkAccess, getLogger, getLoggerNames, getLoggingMXBean, getLogManager, getProperty, readConfiguration, readConfiguration, removeConfigurationListener, updateConfiguration, updateConfiguration
-
-
-
-
Method Detail
-
reset
public void reset()
Does nothing.- Overrides:
resetin classLogManager
-
setup
public static LogManager setup(InputStream inputStream) throws IOException
- Throws:
IOException
-
shutdown
public static void shutdown()
Reset the logging configuration
-
-