public static enum Logger.LogLevel extends Enum<Logger.LogLevel>
| Enum Constant and Description |
|---|
DEBUG
More detailed logging level.
|
INFO
Default logging level.
|
TRACE
Most detailed logging level.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
shouldLog(Logger.LogLevel logLevel)
Whether the message at given
logLevel should be logged. |
static Logger.LogLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Logger.LogLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Logger.LogLevel INFO
public static final Logger.LogLevel DEBUG
public static final Logger.LogLevel TRACE
public static Logger.LogLevel[] values()
for (Logger.LogLevel c : Logger.LogLevel.values()) System.out.println(c);
public static Logger.LogLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean shouldLog(Logger.LogLevel logLevel)
logLevel should be logged.
For example, if current logging level is DEBUG, the method will return true for logging at
INFO, but false for logging at TRACE.
logLevel - log level of the messagelogLevel to log the
message, false otherwiseCopyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.