类 LoggerFactory


  • public class LoggerFactory
    extends Object
    Logger factory
    • 方法详细资料

      • setLoggerAdapter

        public static void setLoggerAdapter(String loggerAdapter)
      • setLoggerAdapter

        public static void setLoggerAdapter(LoggerAdapter loggerAdapter)
        Set logger provider
        参数:
        loggerAdapter - logger provider
      • getLogger

        public static Logger getLogger(Class<?> key)
        Get logger provider
        参数:
        key - the returned logger will be named after clazz
        返回:
        logger
      • getLogger

        public static Logger getLogger(String key)
        Get logger provider
        参数:
        key - the returned logger will be named after key
        返回:
        logger provider
      • getLevel

        public static Level getLevel()
        Get logging level
        返回:
        logging level
      • setLevel

        public static void setLevel(Level level)
        Set the current logging level
        参数:
        level - logging level
      • getFile

        public static File getFile()
        Get the current logging file
        返回:
        current logging file