类 LoggerFactory

    • 构造器详细资料

      • LoggerFactory

        public LoggerFactory()
    • 方法详细资料

      • getLogger

        @Nonnull
        public static Logger getLogger​(java.lang.Class<?> type)
        Get an instance of Logger by type
        参数:
        type - the type
        返回:
        non-null
      • getLogger

        @Nonnull
        public static Logger getLogger​(java.lang.String name)
        Get an instance of Logger by name
        参数:
        name - the name of Logger
        返回:
        Logger
      • isAvailable

        protected boolean isAvailable()
        Current LoggerFactory is available or not
        返回:
        true if available
      • getDelegateLoggerClassName

        protected abstract java.lang.String getDelegateLoggerClassName()
        The class name of delegate Logger
        返回:
        non-null
      • createLogger

        public abstract Logger createLogger​(java.lang.String name)
        Create a new Logger
        参数:
        name - the name of Logger
        返回:
        non-null