glight
Types
pub type LogLevel {
Emergency
Alert
Critical
Error
Warning
Notice
Info
Debug
}
Constructors
-
Emergency
-
Alert
-
Critical
-
Error
-
Warning
-
Notice
-
Info
-
Debug
pub type LoggerContext =
dict.Dict(String, String)
Values
pub fn alert(
logger: dict.Dict(String, String),
message: String,
) -> dict.Dict(String, String)
Log at the alert level. See the erlang log level documentation for more information and context. https://www.erlang.org/doc/apps/kernel/logger_chapter.html#log-level
pub fn configure(transports: List(Transport)) -> Nil
Configure the Erlang logger with provided transports and set the logging
level to Info
.
pub fn critical(
logger: dict.Dict(String, String),
message: String,
) -> dict.Dict(String, String)
Log at the critical level. See the erlang log level documentation for more information and context. https://www.erlang.org/doc/apps/kernel/logger_chapter.html#log-level
pub fn debug(
logger: dict.Dict(String, String),
message: String,
) -> dict.Dict(String, String)
Log at the debug level. See the erlang log level documentation for more information and context. https://www.erlang.org/doc/apps/kernel/logger_chapter.html#log-level
pub fn emergency(
logger: dict.Dict(String, String),
message: String,
) -> dict.Dict(String, String)
Log at the emergency level. See the erlang log level documentation for more information and context. https://www.erlang.org/doc/apps/kernel/logger_chapter.html#log-level
pub fn error(
logger: dict.Dict(String, String),
message: String,
) -> dict.Dict(String, String)
Log at the error level. See the erlang log level documentation for more information and context. https://www.erlang.org/doc/apps/kernel/logger_chapter.html#log-level
pub fn info(
logger: dict.Dict(String, String),
message: String,
) -> dict.Dict(String, String)
Log at the info level. See the erlang log level documentation for more information and context. https://www.erlang.org/doc/apps/kernel/logger_chapter.html#log-level
pub fn notice(
logger: dict.Dict(String, String),
message: String,
) -> dict.Dict(String, String)
Log at the notice level. See the erlang log level documentation for more information and context. https://www.erlang.org/doc/apps/kernel/logger_chapter.html#log-level
pub fn set_is_color(is_color: Bool) -> Nil
Change whether ANSI color is used in log output
pub fn set_json_level_key(key: String) -> Nil
Change the key used for the level in the log output.
pub fn set_json_msg_key(key: String) -> Nil
Change the key used for the message in the log output.
pub fn set_json_time_key(key: String) -> Nil
Change the key used for the time in the log output.
pub fn set_log_level(level: LogLevel) -> Nil
Change the log visibility level to be output.