Structs

  • JSONWriter is a Writer implementation that writes logs in JSON format.
  • re-export log::kv::Key and log::kv::Value. A key in a structured key-value pair.
  • Logger is a struct that holds the configuration for the logger.
  • re-export log::kv::Key and log::kv::Value. A value in a structured key-value pair.

Traits

  • Writer is a trait that defines how to write a log.

Functions

  • Get the maximum log level based on the environment.
  • new_json_writer creates a new JSONWriter with a given io::Write instance.

Type Definitions

  • Log is a type alias for HashMap<Key<’a>, Value<’a>>.