io.sarl.apputils.bootiqueapp.config
Enumeration Level
All Superinterfaces:
java.io.Serializable, java.lang.Comparable<T>, java.lang.constant.Constable
final enum Level
extends java.lang.Object
Enumeration of the Log4j levels.
Maven Group Identifier:
io.sarl.apputils
Maven Artifact Identifier:
bootiqueapp
Since:
15.0
Enumeration Constant Summary
Constant and description
ALL
All.
DEBUG
Debug.
ERROR
Error.
INFO
Information.
OFF
No logging.
TRACE
Trace.
WARNING
Warning.
Action Summary
Modifier and type Action and description
static java.lang.String getLabels
Replies the string representation of all the labels.
java.lang.String toJsonString
Replies the preferred string representation of the level within a Json stream.
java.util.logging.Level toJul
Replies the JUL level.
org.apache.log4j.Level toLog4j
Replies the log4j level.
static Level valueOf(String)
static Level valueOf(Level)
Replies the level that is equivalent to the given JUL level.
static Level valueOf(Level)
Replies the level that is equivalent to the given Log4J level.
static Level valueOfCaseInsensitive(String)
Parse a case insensitive string for obtaining the level.
static Level values
Enumeration Constant Details
ALL
static val ALL : Level
All.
DEBUG
static val DEBUG : Level
Debug.
ERROR
static val ERROR : Level
Error.
INFO
static val INFO : Level
Information.
OFF
static val OFF : Level
No logging.
TRACE
static val TRACE : Level
Trace.
WARNING
static val WARNING : Level
Warning.
Action Details
getLabels
def getLabels : java.lang.String
Replies the string representation of all the labels. The labels are those returned by toJsonString().
Returns:
all the labels.
toJsonString
def toJsonString : java.lang.String
Replies the preferred string representation of the level within a Json stream.
Returns:
the string representation of the level.
Since:
16.0
toJul
def toJul : java.util.logging.Level
Replies the JUL level.
Returns:
the JUL level.
Since:
16.0
toLog4j
def toLog4j : org.apache.log4j.Level
Replies the log4j level.
Returns:
the log4j level.
valueOf(String)
def valueOf(String) : Level
valueOf(Level)
def valueOf(Level) : Level
Replies the level that is equivalent to the given JUL level.
Parameters:
level - the JUL level.
Returns:
the equivalent level.
Since:
16.0
valueOf(Level)
def valueOf(Level) : Level
Replies the level that is equivalent to the given Log4J level.
Parameters:
level - the Log4J level.
Returns:
the equivalent level.
Since:
16.0
valueOfCaseInsensitive(String)
def valueOfCaseInsensitive(String) : Level
Parse a case insensitive string for obtaining the level.
Parameters:
name - the name to parse.
Returns:
the level.
Throws exception:
  • java.lang.NullPointerException: if case the given name is null or empty.
Since:
16.0
values
def values : Level