the interface of the object being serialized. Default is object.
object to be serialized
the log message to write
format string values when msg
is a format string
Log at 'error'
level the given msg. If the first argument is an object, all its properties will be included in the JSON line.
If more args follows msg
, these will be used to format msg
using util.format
.
the interface of the object being serialized. Default is object.
object to be serialized
the log message to write
format string values when msg
is a format string
Log at 'fatal'
level the given msg. If the first argument is an object, all its properties will be included in the JSON line.
If more args follows msg
, these will be used to format msg
using util.format
.
the interface of the object being serialized. Default is object.
object to be serialized
the log message to write
format string values when msg
is a format string
Log at 'info'
level the given msg. If the first argument is an object, all its properties will be included in the JSON line.
If more args follows msg
, these will be used to format msg
using util.format
.
the interface of the object being serialized. Default is object.
object to be serialized
the log message to write
format string values when msg
is a format string
Set this property to the desired logging level. In order of priority, available levels are:
The logging level is a minimum level. For instance if logger.level
is 'info'
then all 'fatal'
, 'error'
, 'warn'
,
and 'info'
logs will be enabled.
You can pass 'silent'
to disable logging.
Noop function.
Log at 'trace'
level the given msg. If the first argument is an object, all its properties will be included in the JSON line.
If more args follows msg
, these will be used to format msg
using util.format
.
the interface of the object being serialized. Default is object.
object to be serialized
the log message to write
format string values when msg
is a format string
Log at 'warn'
level the given msg. If the first argument is an object, all its properties will be included in the JSON line.
If more args follows msg
, these will be used to format msg
using util.format
.
the interface of the object being serialized. Default is object.
object to be serialized
the log message to write
format string values when msg
is a format string
Log at
'debug'
level the given msg. If the first argument is an object, all its properties will be included in the JSON line. If more args followsmsg
, these will be used to formatmsg
usingutil.format
.