Class LogManager

java.lang.Object
org.elasticsearch.logging.LogManager

public final class LogManager extends Object
A Manager of Loggers. This class consists of factory methods for creating and retrieving Loggers.
  • Method Details

    • getLogger

      public static Logger getLogger(String name)
      Returns a Logger with the specified name.
      Parameters:
      name - The logger name.
      Returns:
      The Logger.
    • getLogger

      public static Logger getLogger(Class<?> clazz)
      Returns a Logger using the fully qualified name of the Class as the Logger name.
      Parameters:
      clazz - The Class whose name should be used as the Logger name.
      Returns:
      The Logger.