Class Logging


  • public class Logging
    extends Object
    Author:
    Michael Bien, et.al.
    • Field Detail

      • DEBUG

        public static final boolean DEBUG
    • Constructor Detail

      • Logging

        public Logging()
    • Method Detail

      • getCanonicalName

        public static String getCanonicalName​(Level level)
      • getLogger

        public static Logging.LoggerIf getLogger()
        Returns the root package logger.
      • getLogger

        public static Logging.LoggerIf getLogger​(Class<?> clazz)
        Returns the demanded logger, while aligning its log-level to the root logger's level.
      • getLogger

        public static Logging.LoggerIf getLogger​(String packageName,
                                                 String simpleClassName)
        Returns the demanded logger, while aligning its log-level to the root logger's level.
      • alignLevel

        public static void alignLevel​(Logging.LoggerIf l)
        Align log-level of given logger to the root logger's level.
      • alignLevel

        public static void alignLevel​(Logging.LoggerIf l,
                                      Level level)
        Align log-level of given logger and all its handlers to the given level.