Class DefaultLoggerFactory

  • public class DefaultLoggerFactory
    extends LoggerFactory<Logger>
    Default LoggerFactory using java util logging framework directly.

    This is a no-op factory placeholder delegating directly to the java util logging framework. It is used by Logging as a default (rather than null {@link null}).

    Jody Garnett (GeoCat)
    • Constructor Detail

      • DefaultLoggerFactory

        protected DefaultLoggerFactory()
        Constructs a default factory.
    • Method Detail

      • getInstance

        public static DefaultLoggerFactory getInstance()
        Returns the unique instance of this factory.
      • getImplementation

        protected Logger getImplementation​(String name)
        Returns the implementation to use for the logger of the specified name, or null if the logger would delegate to Java logging anyway.
        Specified by:
        getImplementation in class LoggerFactory<Logger>
        name - The name of the logger.
        The logger as an object of the target logging framework (Log4J, SLF4J, etc.), or null if the target framework would redirect to the Java logging framework.
      • unwrap

        protected Logger unwrap​(Logger logger)
        Returns the implementation wrapped by the specified logger, or null if none.
        Specified by:
        unwrap in class LoggerFactory<Logger>
        logger - The logger to test.
        The implementation wrapped by the specified logger, or null if none.
      • lookupConfiguration

        public String lookupConfiguration()
        Description copied from class: LoggerFactory
        Look up configuration information, or null unknown.

        Report back details on how logging configuration is setup. Ideally including configuration filename along with any system properties used.

        lookupConfiguration in class LoggerFactory<Logger>
        configuration information, or null unknown.