Enum mini_functions::logs::LogLevel
source · pub enum LogLevel {
ALL,
DEBUG,
DISABLED,
ERROR,
FATAL,
INFO,
NONE,
TRACE,
VERBOSE,
WARNING,
}
Expand description
Re-exported main rlg
module from rlg for application logging.
Implements Log
to log a message to the console with a simple,
readable output format.
Arguments
session_id
- A string slice that holds a session ID. The session ID is a unique identifier for the current session. A random GUID (Globally Unique Identifier) is generated by default.time
- A string slice that holds the timestamp in ISO 8601 format.level
- A string slice that holds the level (INFO, WARN, ERROR, etc.).component
- A string slice that holds the component name.description
- A string slice that holds the description of the log message.
An enumeration of the different levels that a log message can have. Each variant of the enumeration represents a different level of importance.
Arguments
ALL
- The log level is set to all.DEBUG
- The log level is set to debug.DISABLED
- The log level is set to disabled.ERROR
- The log level is set to error.FATAL
- The log level is set to fatal.INFO
- The log level is set to info.NONE
- The log level is set to none.TRACE
- The log level is set to trace.VERBOSE
- The log level is set to verbose.WARNING
- The log level is set to warning.
Variants§
ALL
The log level is set to all.
DEBUG
The log level is set to debug.
DISABLED
The log level is set to disabled.
ERROR
The log level is set to error.
FATAL
The log level is set to fatal.
INFO
The log level is set to info.
NONE
The log level is set to none.
TRACE
The log level is set to trace.
VERBOSE
The log level is set to verbose.
WARNING
The log level is set to warning.
Trait Implementations§
source§impl Display for LogLevel
impl Display for LogLevel
Implements LogLevel
to display the log level as a string. It
allows the LogLevel enumeration to be used with the write! and
print! macros. It provides a human-readable string representation of
the variant, that will be used when displaying the log message.
source§impl PartialEq for LogLevel
impl PartialEq for LogLevel
source§impl PartialOrd for LogLevel
impl PartialOrd for LogLevel
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more