LogLevel

enum LogLevel : ProtocolMessageEnum
# Log Level

Enumerates well-known or widely-recognized logging levels. These are used to indicate the severity of a given log
message, and to decide at what severity level log messages should be emitted.
Protobuf enum elide.std.LogLevel

Entries

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Properties

Link copied to clipboard
## Critical

Critical error states are unexpected states in program execution which are completely invalid or illegal, and which
may cause a crash of the program or system. Critical error messages are the highest available level of logging and
are typically never squelched from output.
CRITICAL = 99;
Link copied to clipboard
val DEBUG_VALUE: Int = 200
## Debug

Debug-level logging is typically used during development, or diagnosis of bugs; it is often only activated in rare
circumstances. Debug logging should withhold enough messages to be useful in diagnosis, so it is one level above
`TRACE`-level logging.
DEBUG = 200;
Link copied to clipboard
val ERROR_VALUE: Int = 500
## Errors

Errors are states in execution which are considered invalid or illegal, and therefore must be surfaced to the user,
developer, or operator. Error cases are not always critical, but always important enough to be advertised.
ERROR = 500;
Link copied to clipboard
Alias for `DEBUG`-level logging.
FINE = 200;
Link copied to clipboard
val FINE_VALUE: Int = 200
Alias for `DEBUG`-level logging.
FINE = 200;
Link copied to clipboard
Alias for `TRACE`-level logging.
FINEST = 100;
Link copied to clipboard
val FINEST_VALUE: Int = 100
Alias for `TRACE`-level logging.
FINEST = 100;
Link copied to clipboard
val INFO_VALUE: Int = 300
## Info

Info-level logging is considered informative but not critical in any capacity. It is often used to announce various
system or software states, or to show regular activity which is not errant.
INFO = 300;
Link copied to clipboard
## Default

This value indicates a system-default logging level, or fallback to a declared logging level from somewhere else.
LOG_LEVEL_DEFAULT = 0;
Link copied to clipboard
val TRACE_VALUE: Int = 100
## Trace

Trace-level logging is typically used to show the path that code takes during execution; it is often considered the
"finest" or "highest-grain" logging level.
TRACE = 100;
Link copied to clipboard
Alias for `WARNING`-level logging.
WARN = 400;
Link copied to clipboard
val WARN_VALUE: Int = 400
Alias for `WARNING`-level logging.
WARN = 400;
Link copied to clipboard
val WARNING_VALUE: Int = 400
## Warnings

Warning-level logging is used to indicate conditions that are not necessarily errors, and which may be recoverable,
but still need operator or developer or user attention.
WARNING = 400;

Functions

Link copied to clipboard
open fun forNumber(value: Int): LogLevel
Link copied to clipboard
fun getDescriptor(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getDescriptorForType(): Descriptors.EnumDescriptor
Link copied to clipboard
fun getNumber(): Int
Link copied to clipboard
fun getValueDescriptor(): Descriptors.EnumValueDescriptor
Link copied to clipboard
open fun internalGetValueMap(): Internal.EnumLiteMap<LogLevel>
Link copied to clipboard
open fun valueOf(desc: Descriptors.EnumValueDescriptor): LogLevel
open fun valueOf(value: Int): LogLevel

open fun valueOf(name: String): LogLevel

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard
open fun values(): Array<LogLevel>

Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.