Package io.airlift.log
Class Logging
java.lang.Object
io.airlift.log.Logging
Initializes the logging subsystem.
java.util.Logging, System.out and System.err are tunneled through the logging system.
System.out and System.err are assigned to loggers named "stdout" and "stderr", respectively.
-
Method Summary
Modifier and TypeMethodDescriptionvoidclearLevel(String loggerName) voidconfigure(LoggingConfiguration config) voidvoidexportMBeans(org.weakref.jmx.MBeanExporter exporter) static LoggingSets up default logging:voidvoidvoidsetRootLevel(Level newLevel) void
-
Method Details
-
initialize
Sets up default logging:- INFO level - Log entries are written to stderr
- Returns:
- the logging system singleton
-
exportMBeans
public void exportMBeans(org.weakref.jmx.MBeanExporter exporter) -
unexportMBeans
public void unexportMBeans() -
disableConsole
public void disableConsole() -
getRootLevel
-
setRootLevel
-
setLevels
- Throws:
IOException
-
getLevel
-
clearLevel
-
setLevel
-
getAllLevels
-
configure
-