Expand description

Configuration

Output, color, and timezone can be configured on the Logger.

Features
  • detect-color - Automatically detect terminal color support.
  • detect-timezone - If timestamps are enabled, the local timezone will automatically be detected and used.
  • log - Enable log support.
  • parking_lot - Use parking_lot internally.
  • timestamps - Enable timestamps.
  • tracing - Enable tracing 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.