public enum LogLevel extends Enum<LogLevel>
Note that when enable a level all less verbose levels are enabled too. For example if one enable INFO level warnings are recorder too. In order to disable a logger set its level to OFF.
Enum Constant and Description |
---|
BUG
1 - Unexpected condition likely to be a bug.
|
DEBUG
6 - Fine-grained informational events that are most useful to debug an application.
|
ERROR
3 - Error events that might still allow the application to continue running.
|
FATAL
2 - Very severe error events that will presumably lead the application to abort.
|
INFO
5 - Informational messages that highlight the progress of the application at coarse-grained level.
|
OFF
0 - Log is disabled.
|
TRACE
7 - The same as
DEBUG but with finer granularity. |
WARN
4 - Potentially harmful situations.
|
Modifier and Type | Method and Description |
---|---|
static LogLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LogLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogLevel DEBUG
public static final LogLevel INFO
public static final LogLevel WARN
public static final LogLevel ERROR
public static final LogLevel FATAL
public static final LogLevel BUG
public static final LogLevel OFF
public static LogLevel[] values()
for (LogLevel c : LogLevel.values()) System.out.println(c);
public static 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 nullCopyright © 2018. All rights reserved.