The severity level for the message to be logged.
Metadata associated with the message to be logged.
The following macros are defined:
All macros expand to a call to logger, where
#{mfa=>{?MODULE,?FUNCTION_NAME,?FUNCTION_ARITY},
file=>?FILE,
line=>?LINE}
The call is wrapped in a case statement and will be evaluated
only if
Equivalent to
Equivalent to
Equivalent to
Equivalent to
Equivalent to
Equivalent to
Equivalent to
Equivalent to
Log the given message.
Lookup the current configuration for logger.
Lookup the current configuration for the given handler.
Same as
The
logger:i().
Current logger configuration:
Level: info
FilterDefault: log
Filters:
Handlers:
Id: logger_std_h
Module: logger_std_h
Level: info
Formatter:
Module: logger_formatter
Config: #{template => [{logger_formatter,header},"\n",msg,"\n"],
legacy_header => true}
Filter Default: stop
Filters:
Id: stop_progress
Fun: fun logger_filters:progress/2
Config: stop
Id: remote_gl
Fun: fun logger_filters:remote_gl/2
Config: stop
Id: domain
Fun: fun logger_filters:domain/2
Config: {log,prefix_of,[beam,erlang,otp,sasl]}
Id: no_domain
Fun: fun logger_filters:domain/2
Config: {log,no_domain,[]}
Handler Config:
logger_std_h: #{type => standard_io}
Level set per module:
Module: my_module
Level: debug]]>
Add a filter to the logger.
Add a filter to the specified handler.
Remove the filter with the specified identity from the logger.
Remove the filter with the specified identity from the given handler.
Add a handler with the given configuration.
Remove the handler with the specified identity.
Set the log level for the specified module.
To change the logging level globally, use
Remove a module specific log setting. After this, the global log level is used for the specified module.
Add or update configuration data for the logger.
Add or update configuration data for the specified handler.
Compare the severity of two log levels. Returns
Set metadata which
When logging, location data produced by the log macros, and/or metadata given as argument to the log call (API function or macro), will be merged with the process metadata. If the same keys occur, values from the metadata argument to the log call will overwrite values in the process metadata, which in turn will overwrite values from the location data.
Retrieve data set
with
Delete data set
with