butterlib/log

Values

pub fn add_primary_filters(patterns: List(String)) -> Nil
pub fn add_primary_inspect() -> Nil
pub fn configure(loglevel: logging.LogLevel) -> Nil
pub fn debug(msg: String) -> Nil
pub fn debug_and_continue(msg: String, continue: a) -> a

Logs an Debug log and return a value Useful for when you want to log a debug log before returning a value

pub fn error(msg: String) -> Nil
pub fn error_and_continue(msg: String, continue: a) -> a

Creates an Error log and return the given value ‘a’ Useful for when you want to log an error before returning a value

pub fn info(msg: String) -> Nil
pub fn info_and_continue(msg: String, continue: a) -> a

Logs an Info log and return a value Useful for when you want to log an info log before returning a value

pub fn suppress_sasl_error_reports() -> Result(Nil, Nil)

Suppress SASL application logs specifically This removeds the Error Reports from erlang logging

pub fn warning(msg: String) -> Nil
pub fn warning_and_continue(msg: String, continue: a) -> a

Logs an Warning log and return a value Useful for when you want to log a warning before returning a value

Search Document