Package glair.vision.logger
Class LoggerConfig
java.lang.Object
glair.vision.logger.LoggerConfig
Configuration for the logger.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs 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 TypeMethodDescriptionintGet the log level.Get the log pattern.
-
Field Details
-
DEBUG
public static final int DEBUGRepresents the DEBUG log level. This level is used for fine-grained debugging information.- See Also:
-
INFO
public static final int INFORepresents the INFO log level. This level is used for general informational messages.- See Also:
-
WARN
public static final int WARNRepresents the WARN log level. This level is used for warning messages, indicating potential issues.- See Also:
-
ERROR
public static final int ERRORRepresents 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
Constructs a new logger configuration with a custom log pattern and the default log level.- Parameters:
logPattern- The custom log pattern.
-
LoggerConfig
Constructs a new logger configuration with custom log level and log pattern.- Parameters:
logPattern- The custom log pattern.logLevel- The custom log level.
-
LoggerConfig
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
Get the log pattern.- Returns:
- The log pattern.
-