Expand description
Configuration
Output, color, and timezone can be configured on the Logger
.
Features
detect-color
- Automatically detect terminal color support.detect-timezone
- Iftimestamps
are enabled, the local timezone will automatically be detected and used.log
- Enablelog
support.parking_lot
- Useparking_lot
internally.timestamps
- Enable timestamps.tracing
- Enabletracing
support.
Log level
Set the level using log
or tracing
directly.
Filtering
To add filtering with log
, create a new struct that implements Log::enabled
, and forward
the other methods to tinylog::Logger
.
For tracing
, tracing_subscriber
already lets you add filters to existing layers.
Structs
A tiny logger.