Class LoggerConfig

java.lang.Object
glair.vision.logger.LoggerConfig

public class LoggerConfig extends Object
Configuration for the logger.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Represents the DEBUG log level.
    static final int
    Represents the ERROR log level.
    static final int
    Represents the INFO log level.
    static final int
    Represents the WARN log level.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructs a new logger configuration with the default log level and pattern.
    LoggerConfig(int logLevel)
    Constructs a new logger configuration with a custom log level and the default log pattern.
    LoggerConfig(int logLevel, String logPattern)
    Constructs a new logger configuration with custom log level and log pattern.
    LoggerConfig(String logPattern)
    Constructs a new logger configuration with a custom log pattern and the default log level.
    LoggerConfig(String logPattern, int logLevel)
    Constructs a new logger configuration with custom log level and log pattern.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Get the log level.
    Get the log pattern.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEBUG

      public static final int DEBUG
      Represents the DEBUG log level. This level is used for fine-grained debugging information.
      See Also:
    • INFO

      public static final int INFO
      Represents the INFO log level. This level is used for general informational messages.
      See Also:
    • WARN

      public static final int WARN
      Represents the WARN log level. This level is used for warning messages, indicating potential issues.
      See Also:
    • ERROR

      public static final int ERROR
      Represents the ERROR log level. This level is used for error messages, indicating significant problems.
      See Also:
  • Constructor Details

    • LoggerConfig

      public LoggerConfig()
      Constructs a new logger configuration with the default log level and pattern.
    • LoggerConfig

      public LoggerConfig(int logLevel)
      Constructs a new logger configuration with a custom log level and the default log pattern.
      Parameters:
      logLevel - The custom log level.
    • LoggerConfig

      public LoggerConfig(String logPattern)
      Constructs a new logger configuration with a custom log pattern and the default log level.
      Parameters:
      logPattern - The custom log pattern.
    • LoggerConfig

      public LoggerConfig(String logPattern, int logLevel)
      Constructs a new logger configuration with custom log level and log pattern.
      Parameters:
      logPattern - The custom log pattern.
      logLevel - The custom log level.
    • LoggerConfig

      public LoggerConfig(int logLevel, String logPattern)
      Constructs a new logger configuration with custom log level and log pattern.
      Parameters:
      logLevel - The custom log level.
      logPattern - The custom log pattern.
  • Method Details

    • getLogLevel

      public int getLogLevel()
      Get the log level.
      Returns:
      The log level.
    • getLogPattern

      public String getLogPattern()
      Get the log pattern.
      Returns:
      The log pattern.