Class FluentLoggerFactory


  • public class FluentLoggerFactory
    extends Object
    The entry point for using slf4j-fluent. It creates a new FluentLogger associated with the given name or class.
    • Constructor Detail

      • FluentLoggerFactory

        public FluentLoggerFactory()
    • Method Detail

      • getLogger

        public static FluentLogger getLogger​(String name)
        Creates a new FluentLogger associated with the given name.
        Parameters:
        name - the name of the logger
        Returns:
        a new FluentLogger instance that wraps a Logger
      • getLogger

        public static FluentLogger getLogger​(Class<?> clazz)
        Creates a new FluentLogger associated with the given class.
        Parameters:
        clazz - the class to associate this logger to
        Returns:
        a new FluentLogger instance that wraps a Logger