Implementation of the monitoring handler which dumps records formatted
as JSON objects to `logging`.
Parameters
----------
logger_name : `str`
Name of the `logging` logger to use for output.
log_level : `int`, optional
Logging level to use for output, default is `INFO`
Notes
-----
The attributes of the formatted JSON object correspond to the parameters
of `handle` method, except for `agent_name` which is mapped to `source`.
The `tags` and `values` become JSON sub-objects with corresponding keys.
None lsst.dax.apdb.monitor.LoggingMonHandler.handle |
( |
| self, |
|
|
str | name, |
|
|
float | timestamp, |
|
|
_TagsType | tags, |
|
|
Mapping[str, Any] | values, |
|
|
str
| agent_name ) |
Handle one monitoring record.
Parameters
----------
name : `str`
Record name, arbitrary string.
timestamp : `str`
Time in seconds since UNIX epoch when record originated.
tags : `~collections.abc.Mapping` [`str`, `str` or `int`]
Tags associated with the record, may be empty.
values : `~collections.abc.Mapping` [`str`, `Any`]
Values associated with the record, usually never empty.
agent_name `str`
Name of a client agent that produced this record.
Reimplemented from lsst.dax.apdb.monitor.MonHandler.