Package velox.api.layer1.common
Enum Class Log.LogLevel
- All Implemented Interfaces:
Serializable,Comparable<Log.LogLevel>,Constable
- Enclosing class:
Log
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbooleanallows(Log.LogLevel level) static Log.LogLevelfromInt(int levelAsInt) static Log.LogLevelReturns the enum constant of this class with the specified name.static Log.LogLevel[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
TRACE
Trace messages. A lot of information is logged, so this level is usually only needed when debugging a problem. -
DEBUG
Debug messages. This level is useful during development. -
INFO
Informative messages. Typically used for deployment. -
WARN
Important warnings. The application will continue to work correctly. -
ERROR
Critical errors. The application may no longer work correctly. -
TRADING
Information related to trading activity. Used for debugging trading issues. -
NO_LOG
Unrealistically high level used to disable logs
-
-
Field Details
-
levelAsInt
public final int levelAsIntInteger representing log level. Used for comparing log levels (more/less critical)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
fromInt
-
allows
-