Copyright © 2011-2016 Garrett Smith
Authors: Garrett Smith ([email protected]).
e2 log support.
e2_log provides a more terse interface to Erlang's standard error_logger module.add_handler/1 | Registered a log handler. |
add_handler/2 | Registered a log handler. |
delete_handler/1 | Unregisters a log handler. |
error/1 | Logs an error report. |
error/2 | Log an error message or report. |
info/1 | Log an info report. |
info/2 | Log an info report. |
tty/1 | Turns tty printing on or off. |
warn/1 | Log a warning report. |
warn/2 | Log a warning report. |
add_handler(Handler) -> any()
Equivalent to add_handler(Handler, []).
Registered a log handler.
add_handler(Handler, Args) -> ok
Registered a log handler.
Log handlers must implement thee2_log_handler
behavior.
delete_handler(Handler) -> ok
Unregisters a log handler.
error(Report::Info) -> ok
Logs an error report.
error(Type::MsgOrType, Report::ArgsOrReport) -> ok
Log an error message or report.
Refer toinfo/2
for an explanation on how the arguments are
used in this function.
info(Report::Info) -> ok
Log an info report.
info(Type::MsgOrType, Report::ArgsOrReport) -> ok
Log an info report.
If the first argument is a string, the second argument must be a list of arguments used in message format string.
If the first argument is an atom, it is used as the report type for the second argument.tty(Flag::boolean()) -> ok
Turns tty printing on or off.
warn(Report::Warning) -> ok
Log a warning report.
warn(Type::MsgOrType, Report::ArgsOrReport) -> ok
Log a warning report.
If the first argument is a string, the second argument must be a list of arguments used in message format string.
If the first argument is an atom, it is used as the report type for the second argument.Generated by EDoc