Class LoggerFactory

java.lang.Object
org.drasyl.util.logging.LoggerFactory
Direct Known Subclasses:
JdkLoggerFactory, Slf4JLoggerFactory

public abstract class LoggerFactory extends Object
Provides loggers. If available, SLF4J loggers are used. Otherwise, java.util.logging loggers are used..
  • Constructor Details

    • LoggerFactory

      public LoggerFactory()
  • Method Details

    • getLogger

      public static Logger getLogger(Class<?> clazz)
      Creates a new logger with name of specified clazz.
    • getLogger

      public static Logger getLogger(String name)
      Creates a new logger with specified name.
    • newLogger

      protected abstract Logger newLogger(String name)