Copyright © (C) 2012 Erlware, LLC.
Authors: Eric Merritt (ericbmerritt@gmail.com).
atom_log_level() = error | warn | info | debug
caller() = api | command_line
int_log_level() = 0..3
intensity() = none | low | high
log_fun() = fun(() -> iolist())
log_level() = int_log_level() | atom_log_level()
abstract datatype: t()
atom_log_level/1 | get the current log level as an atom. |
debug/2 | log at the debug level given the current log state with a string or function that returns a string. |
debug/3 | log at the debug level given the current log state with a format string and argements @see io:format/2. |
error/2 | log at the error level given the current log state with a string or format string that returns a function. |
error/3 | log at the error level given the current log state with a format string and argements @see io:format/2. |
format/1 | |
info/2 | log at the info level given the current log state with a string or function that returns a string. |
info/3 | log at the info level given the current log state with a format string and argements @see io:format/2. |
log/4 | when the module log level is less then or equal to the log level for the call then write the log info out. |
log_level/1 | get the current log level as an integer. |
new/1 | Create a new 'log level' for the system. |
new/2 | |
new/3 | |
should/2 | return a boolean indicating if the system should log for the specified levelg. |
warn/2 | log at the warn level given the current log state with a string or format string that returns a function. |
warn/3 | log at the warn level given the current log state with a format string and argements @see io:format/2. |
atom_log_level(State_t::t()) -> atom_log_level()
get the current log level as an atom
log at the debug level given the current log state with a string or function that returns a string
debug(LogState::t(), FormatString::string(), Args::[any()]) -> ok
log at the debug level given the current log state with a format string and argements @see io:format/2
log at the error level given the current log state with a string or format string that returns a function
error(LogState::t(), FormatString::string(), Args::[any()]) -> ok
log at the error level given the current log state with a format string and argements @see io:format/2
format(Log::t()) -> iolist()
log at the info level given the current log state with a string or function that returns a string
info(LogState::t(), FormatString::string(), Args::[any()]) -> ok
log at the info level given the current log state with a format string and argements @see io:format/2
log(State_t::t(), LogLevel::int_log_level(), FormatString::string(), Args::[any()]) -> ok
when the module log level is less then or equal to the log level for the call then write the log info out. When its not then ignore the call.
log_level(State_t::t()) -> int_log_level()
get the current log level as an integer
new(LogLevel::log_level()) -> t()
Create a new 'log level' for the system
new(LogLevel::log_level(), Caller::caller()) -> t()
new(LogLevel::log_level(), Caller::caller(), Intensity::intensity()) -> t()
should(State_t::t(), LogLevel::int_log_level() | any()) -> boolean()
return a boolean indicating if the system should log for the specified levelg
log at the warn level given the current log state with a string or format string that returns a function
warn(LogState::t(), FormatString::string(), Args::[any()]) -> ok
log at the warn level given the current log state with a format string and argements @see io:format/2
Generated by EDoc, May 1 2024, 06:09:58.