com.aldebaran.qi.log
public enum LogLevel extends Enum<LogLevel>
Enum Constant and Description |
---|
DEBUG
Debugging purpose log
|
ERROR
Log appear when error happen
|
FATAL
So important message that it is consider as fatal when show it
|
INFORMATION
Informative debug
|
SILENT
No log should be display at this level
|
VERBOSE
Log not important
|
WARNING
Warn developer of something may be dangerous
|
Modifier and Type | Method and Description |
---|---|
LogLevel |
lessImportant()
Obtain level less important in hierarchy
|
int |
level()
Log level order.
More level is low, more log is important
|
LogLevel |
moreImportant()
Obtain level more important in hierarchy
|
static LogLevel |
obtainLogLevel(int 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 SILENT
public static final LogLevel FATAL
public static final LogLevel ERROR
public static final LogLevel WARNING
public static final LogLevel INFORMATION
public static final LogLevel VERBOSE
public static final LogLevel DEBUG
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 obtainLogLevel(int level)
public int level()
public LogLevel moreImportant()
public LogLevel lessImportant()
Copyright © 2019. All rights reserved.