public enum LoggerLevel extends Enum<LoggerLevel>
Enum Constant and Description |
---|
ALL |
DEBUG |
ERROR |
FATAL |
INFO |
OFF |
TRACE |
WARN |
Modifier and Type | Method and Description |
---|---|
static LoggerLevel |
fromLevel(org.apache.logging.log4j.Level level) |
org.apache.logging.log4j.Level |
getLevel() |
static LoggerLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LoggerLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LoggerLevel OFF
public static final LoggerLevel FATAL
public static final LoggerLevel ERROR
public static final LoggerLevel WARN
public static final LoggerLevel INFO
public static final LoggerLevel DEBUG
public static final LoggerLevel TRACE
public static final LoggerLevel ALL
public static LoggerLevel[] values()
for (LoggerLevel c : LoggerLevel.values()) System.out.println(c);
public static LoggerLevel 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 org.apache.logging.log4j.Level getLevel()
public static LoggerLevel fromLevel(org.apache.logging.log4j.Level level)
Copyright © 2010–2023 The Apache Software Foundation. All rights reserved.