glimt/log_message
Types
LogLevel used in log messages and as limits for loggers
pub type LogLevel {
ALL
TRACE
DEBUG
INFO
WARNING
ERROR
FATAL
NONE
}
Constructors
-
ALL
-
TRACE
-
DEBUG
-
INFO
-
WARNING
-
ERROR
-
FATAL
-
NONE
LogMessage contains all the data that can be dispatched/serialized by a logger instance
pub type LogMessage(data, context, result_type) {
LogMessage(
time: String,
name: String,
pid: Pid,
instance_name: Option(String),
instance_pid: Option(Pid),
level: LogLevel,
level_value: Int,
message: String,
error: Option(Result(result_type, result_type)),
data: Option(data),
context: Option(context),
)
}
Constructors
-
LogMessage( time: String, name: String, pid: Pid, instance_name: Option(String), instance_pid: Option(Pid), level: LogLevel, level_value: Int, message: String, error: Option(Result(result_type, result_type)), data: Option(data), context: Option(context), )
Functions
pub fn level_string(log_level: LogLevel) -> String
pub fn level_value(log_level: LogLevel) -> Int