Module riak_pipe_log

Logging support for pipes.

Description

Logging support for pipes.

Function Index

log/2Log the given message, if logging is enabled, to the specified log target.
trace/3Log a trace message.

Function Details

log/2

log(Fitting_details::riak_pipe_fitting:details(), Msg::term()) -> ok

Log the given message, if logging is enabled, to the specified log target. Logging is enabled and directed via the log option passed to riak_pipe:exec/2. If the option was set to sink, log messages are sent to the sink. If the option was set to sasl, log messages are printed via error_logger to the SASL log. If the option was set to lager, log messages are printed via lager to the Riak node's log. If no option was given, log messages are discarded.

trace/3

trace(Fitting_details::riak_pipe_fitting:details(), Types::[term()], Msg::term()) -> ok

Log a trace message. If any of the Types given matches any of the types in the trace option that was passed to riak_pipe:exec/2 (or if trace was set to all), the trace message will be sent to the log target (if logging is enabled; see log/2). If no trace option was given, or no type matches, the message is discarded.

The node() and the name of the fitting will be added to the Types list - the calling function does not need to specify them.


Generated by EDoc, Oct 20 2012, 17:51:48.