Skip to main content

Module log

Module log 

Source
Expand description

Leveled logging that doubles as instrumentation.

Every log line is also dispatched on the event bus, so Telescope and a JSON log shipper see the same records without the caller doing anything twice.

Enums§

Level

Functions§

enabled
log
set_json
Emit one JSON object per line instead of the human format. This is what production deployments want so log aggregators can parse the output.
set_level
Drop anything below this level.