Enum LogLevel
pub enum LogLevel {
Error = 1,
Warn = 2,
Info = 3,
Trace = 4,
}Variants§
Error = 1
Use the error log level to log critical malfunction messages. Because the purpose of error messages is to provide as much information as possible needed to investigate the reported issue, it is recommended to make error messages very detailed.
Warn = 2
Use the warning log level to log facts that require attention, but do not necessarily mean malfunction. For example, use a warning message to notify the user about something recoverable, such as a missing parameter that has the default value, or something that can lead to performance degradation, but not failure
Info = 3
Use the info log level to log information messages that give a brief overview of what is happening in the system, log states passed, static information about configuration, and so on.
Trace = 4
Use the trace log level to get the maximum amount of information about the system. This is the most verbose log level, mainly used to troubleshoot issues.