All functions exported from this module can be used as logger
or handler
filters. See
Filters are removed with
This filter provides a way of filtering log events based on a
The
The filter compares the value of the
The filter matches if
The filter matches if
The filter matches if
The filter matches if
The filter matches if there is no domain field in
metadata. In this case
If the filter matches and
If the filter does not match, it returns
Log events that do not contain any domain field, will
only match when
Example: stop all events with
domain
logger:set_handler_config(h1,filter_default,log). % this is the default
Filter = {fun logger_filters:domain/2,{stop,starts_with,[beam,erlang,otp,sasl]}}.
logger:add_handler_filter(h1,no_sasl,Filter).
ok
This filter provides a way of filtering log events based
on the log level. It matches log events by comparing the
log level with a predefined
The
The filter compares the value of the event's log level
(
If the filter matches and
If the filter does not match, it returns
Example: only allow debug level log events
logger:set_handler_config(h1,filter_default,stop).
Filter = {fun logger_filters:level/2,{log,eq,debug}}.
logger:add_handler_filter(h1,debug_only,Filter).
ok
This filter matches all progress reports
from
If
The filter returns
This filter matches all events originating from a process that has its group leader on a remote node.
If
The filter returns