public enum LogLevel extends Enum<LogLevel>
JUL | JMXFetch LogLevel ---------------------------- OFF | OFF SEVERE | ERROR WARNING | WARN INFO | INFO CONFIG | DEBUG FINE | DEBUG FINER | TRACE FINEST | TRACE ALL | ALL
`FATAL` from previous bindings used by JMXFetch is now converted to `LogLevel.ERROR`.
| Enum Constant and Description |
|---|
ALL |
DEBUG |
ERROR |
INFO |
OFF |
TRACE |
WARN |
| Modifier and Type | Method and Description |
|---|---|
static LogLevel |
fromJulLevel(Level julLevel)
fromJulLevel converts a java.util.logging.Level into a LogLevel.
|
static LogLevel |
fromString(String str)
fromString converts a string into a LogLevel, when not possible, it returns `INFO`.
|
Level |
toJulLevel()
toJulLevel converts a LogLevel to a `java.util.logging.Level`.
|
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 OFF
public static final LogLevel ERROR
public static final LogLevel WARN
public static final LogLevel INFO
public static final LogLevel DEBUG
public static final LogLevel TRACE
public static final LogLevel ALL
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 nullpublic static LogLevel fromJulLevel(Level julLevel)
public static LogLevel fromString(String str)
public Level toJulLevel()
Copyright © 2022. All rights reserved.