Top Description Fields Constructors Methods
org.apache.logging.log4j.spi

public final Enum StandardLevel

extends Enum<StandardLevel>
Class Inheritance
Imports
java.util.EnumSet

Standard Logging Levels as an enumeration for use internally. This enum is used as a parameter in any public APIs.

Field Summary

Modifier and TypeField and Description
public static final StandardLevel
ALL

All events should be logged.

public static final StandardLevel
DEBUG

A general debugging event.

public static final StandardLevel
ERROR

An error in the application, possibly recoverable.

public static final StandardLevel
FATAL

A severe error that will prevent the application from continuing.

public static final StandardLevel
INFO

An event for informational purposes.

private final int
private static final EnumSet<StandardLevel>
public static final StandardLevel
OFF

No events will be logged.

public static final StandardLevel
TRACE

A fine-grained debug message, typically capturing the flow through the application.

public static final StandardLevel
WARN

An event that might possible lead to an error.

Constructor Summary

AccessConstructor and Description
private
StandardLevel(final int val)

Method Summary

Modifier and TypeMethod and Description
public static StandardLevel

Returns:

The StandardLevel.
getStandardLevel
(final int
The integer value of the Level.
intLevel
)

Method to convert custom Levels into a StandardLevel for conversion to other systems.

public int

Returns:

the integer value of the Level.
intLevel
()

Returns the integer value of the Level.

public static StandardLevel
public static StandardLevel[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

ALLback to summary
public static final StandardLevel ALL

All events should be logged.

DEBUGback to summary
public static final StandardLevel DEBUG

A general debugging event.

ERRORback to summary
public static final StandardLevel ERROR

An error in the application, possibly recoverable.

FATALback to summary
public static final StandardLevel FATAL

A severe error that will prevent the application from continuing.

INFOback to summary
public static final StandardLevel INFO

An event for informational purposes.

intLevelback to summary
private final int intLevel
LEVELSETback to summary
private static final EnumSet<StandardLevel> LEVELSET
OFFback to summary
public static final StandardLevel OFF

No events will be logged.

TRACEback to summary
public static final StandardLevel TRACE

A fine-grained debug message, typically capturing the flow through the application.

WARNback to summary
public static final StandardLevel WARN

An event that might possible lead to an error.

Constructor Detail

StandardLevelback to summary
private StandardLevel(final int val)

Method Detail

getStandardLevelback to summary
public static StandardLevel getStandardLevel(final int intLevel)

Method to convert custom Levels into a StandardLevel for conversion to other systems.

Parameters
intLevel:int

The integer value of the Level.

Returns:StandardLevel

The StandardLevel.

intLevelback to summary
public int intLevel()

Returns the integer value of the Level.

Returns:int

the integer value of the Level.

valueOfback to summary
public static StandardLevel valueOf(String name)
valuesback to summary
public static StandardLevel[] values()