log_level() = none | debug | info | notice | warning | error | critical | alert | emergency
log_level_number() = 0..7
clear_all_traces/0 | |
dispatch_log/5 | |
dispatch_log/7 | |
dispatch_log/9 | |
do_log/9 | |
get_loglevel/1 | Get the loglevel for a particular backend on the default sink. |
get_loglevel/2 | Get the loglevel for a particular sink's backend. |
list_all_sinks/0 | |
log/3 | Manually log a message into lager without using the parse transform. |
log/4 | Manually log a message into lager without using the parse transform. |
log/5 | Manually log a message into lager without using the parse transform. |
log_unsafe/4 | |
md/0 | Get lager metadata for current process. |
md/1 | Set lager metadata for current process. |
posix_error/1 | Try to convert an atom to a posix error, but fall back on printing the term if its not a valid posix error code. |
pr/2 | Print a record or a list of records lager found during parse transform. |
pr/3 | Print a record or a list of records lager found during parse transform. |
pr_stacktrace/1 | Print stacktrace in human readable form. |
pr_stacktrace/2 | |
rotate_all/0 | |
rotate_handler/1 | |
rotate_handler/2 | |
rotate_sink/1 | |
safe_format/3 | Print the format string Fmt with Args safely with a size
limit of Limit . |
set_loghwm/2 | Set the loghwm for the default sink. |
set_loghwm/3 | Set the loghwm for a particular backend. |
set_loghwm/4 | Set the loghwm (log high water mark) for file backends with multiple identifiers. |
set_loglevel/2 | Set the loglevel for a particular backend. |
set_loglevel/3 | Set the loglevel for a particular backend that has multiple identifiers (eg. |
set_loglevel/4 | Set the loglevel for a particular sink's backend that potentially has multiple identifiers. |
start/0 | Start the application. |
status/0 | |
stop_trace/1 | |
stop_trace/3 | |
trace/2 | |
trace/3 | |
trace_console/1 | |
trace_console/2 | |
trace_file/2 | |
trace_file/3 | |
trace_file/4 | |
update_loglevel_config/1 | recalculate min log level. |
clear_all_traces() -> any()
dispatch_log(Severity, Metadata, Format, Args, Size) -> any()
dispatch_log(Sink::atom(), Severity::log_level(), Metadata::list(), Format::string(), Args::list() | none, Size::pos_integer(), Safety::safe | unsafe) -> ok | {error, lager_not_running} | {error, {sink_not_configured, atom()}}
dispatch_log(Severity, Module, Function, Line, Pid, Metadata, Format, Args, Size) -> any()
do_log(Severity, Metadata, Format, Args, Size, SeverityAsInt, LevelThreshold, TraceFilters, SinkPid) -> any()
get_loglevel(Handler) -> any()
Get the loglevel for a particular backend on the default sink. In the case that the backend has multiple identifiers, the lowest is returned.
get_loglevel(Sink, Handler) -> any()
Get the loglevel for a particular sink's backend. In the case that the backend has multiple identifiers, the lowest is returned.
list_all_sinks() -> any()
log(Level::log_level(), Pid::pid() | atom() | [tuple(), ...], Message::list()) -> ok | {error, lager_not_running}
Manually log a message into lager without using the parse transform.
log(Level::log_level(), Pid::pid() | atom() | [tuple(), ...], Format::string(), Args::list()) -> ok | {error, lager_not_running}
Manually log a message into lager without using the parse transform.
log(Sink::atom(), Level::log_level(), Pid::pid() | atom() | [tuple(), ...], Format::string(), Args::list()) -> ok | {error, lager_not_running}
Manually log a message into lager without using the parse transform.
log_unsafe(Level, Metadata, Format, Args) -> any()
md() -> [{atom(), any()}]
Get lager metadata for current process
md(NewMD::[{atom(), any()}, ...]) -> ok
Set lager metadata for current process. Will badarg if you don't supply a list of {key, value} tuples keyed by atoms.
posix_error(Error) -> any()
Try to convert an atom to a posix error, but fall back on printing the term if its not a valid posix error code.
pr(Record, Module) -> any()
Print a record or a list of records lager found during parse transform
pr(Record, Module, Options) -> any()
Print a record or a list of records lager found during parse transform
pr_stacktrace(Stacktrace) -> any()
Print stacktrace in human readable form
pr_stacktrace(Stacktrace, X2) -> any()
rotate_all() -> any()
rotate_handler(Handler) -> any()
rotate_handler(Handler, Sink) -> any()
rotate_sink(Sink) -> any()
safe_format(Fmt, Args, Limit) -> any()
Print the format string Fmt
with Args
safely with a size
limit of Limit
. If the format string is invalid, or not enough
arguments are supplied 'FORMAT ERROR' is printed with the offending
arguments. The caller is NOT crashed.
set_loghwm(Handler, Hwm) -> any()
Set the loghwm for the default sink.
set_loghwm(Sink, Handler, Hwm) -> any()
Set the loghwm for a particular backend.
set_loghwm(Sink, Handler, Ident, Hwm) -> any()
Set the loghwm (log high water mark) for file backends with multiple identifiers
set_loglevel(Handler, Level) -> any()
Set the loglevel for a particular backend.
set_loglevel(Handler, Ident, Level) -> any()
Set the loglevel for a particular backend that has multiple identifiers (eg. the file backend).
set_loglevel(Sink, Handler, Ident, Level) -> any()
Set the loglevel for a particular sink's backend that potentially has
multiple identifiers. (Use undefined
if it doesn't have any.)
start() -> any()
Start the application. Mainly useful for using -s lager
as a command
line switch to the VM to make lager start on boot.
status() -> any()
stop_trace(X1) -> any()
stop_trace(Backend, Filter, Level) -> any()
trace(Backend, Filter) -> any()
trace(Backend, Filter, Level) -> any()
trace_console(Filter) -> any()
trace_console(Filter, Level) -> any()
trace_file(File, Filter) -> any()
trace_file(File, Filter, Level) -> any()
trace_file(File, Filter, Level, Options) -> any()
update_loglevel_config(Sink) -> any()
recalculate min log level
Generated by EDoc