Class Logging


  • public class Logging
    extends Object
    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 Detail

      • initialize

        public static Logging initialize()
        Sets up default logging:

        - INFO level - Log entries are written to stderr

        Returns:
        the logging system singleton
      • disableConsole

        public void disableConsole()
      • logToFile

        public void logToFile​(boolean legacyLoggerImplementation,
                              String logPath,
                              int maxHistory,
                              io.airlift.units.DataSize maxFileSize,
                              io.airlift.units.DataSize maxTotalSize,
                              RollingFileHandler.CompressionType compressionType,
                              Format format)
      • getRootLevel

        public Level getRootLevel()
      • setRootLevel

        public void setRootLevel​(Level newLevel)
      • getLevel

        public Level getLevel​(String loggerName)
      • clearLevel

        public void clearLevel​(String loggerName)
      • setLevel

        public void setLevel​(String loggerName,
                             Level level)