Default formatter for the Logger application.
The following configuration parameters can be set
for
If set to
Default is
If set to
Default is
A function with arity 1,
returning
A positive integer representing the maximum depth to
which terms shall be printed by this formatter. Format
strings passed to this formatter are rewritten. The format
controls ~p and ~w are replaced with ~P and ~W,
respectively, and the value is used as the depth
parameter. For details, see
Default is
A positive integer representing the value of the option
with the same name to be used when calling
Default is
A positive integer representing the absolute maximum size
a string returned from this formatter can have. If the
formatted string is longer, after possibly being limited
by
Default is
The template is a list of atoms, tuples and strings. The
atoms
#{key1=>#{key2=>my_value,
...}
...}
Strings are printed literally.
The default template differs depending on the values
of
If set to
The default template when
[{logger_formatter,header},"\n",msg,"\n"]
which will cause log entries like this:
=ERROR REPORT==== 29-Dec-2017::13:30:51.245123 ===
process: <0.74.0>
exit_reason: "Something went wrong"
Note that all eight levels might occur here, not
only
The default template when
[time," ",level,": ",msg,"\n"]
which will cause log entries like this:
2017-12-29 13:31:49.640317 error: process: <0.74.0>, exit_reason: "Something went wrong"
The default template when both
[time," ",level,":\n",msg,"\n"]
which will cause log entries like this:
2017-12-29 13:32:25.191925 error:
process: <0.74.0>
exit_reason: "Something went wrong"
This the callback function to be called from handlers. It formats the given messages.