Expand description
§Configuration
Output, color, and timezone can be configured on the Logger.
§Features
detect-color- Automatically detect terminal color support.detect-timezone- Iftimestampsare enabled, the local timezone will automatically be detected and used.log- Enablelogsupport.parking_lot- Useparking_lotinternally.timestamps- Enable timestamps.tracing- Enabletracingsupport.
§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§
- Logger
- A tiny logger.