sloggers 2.2.0

This library provides frequently used slog loggers and convenient functions
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
type = "file" # terminal or file
format = "full" # full or compact
source_location = "module_and_line" # none or module_and_line
timezone = "local" # utc or local
level = "debug" # one of trace, debug, info, warning, error, critical

# {timestamp} will be replaced with timestamp in the appropriate time zone
# formatted according to the timestamp_template setting.
path = "file_{timestamp}.log"

# Format string for the timestamp in path.
# The string is formatted using [strftime](https://docs.rs/chrono/0.4.6/chrono/format/strftime/index.html#specifiers)
# Default: "%Y%m%d_%H%M", example: "20180918_1127"
timestamp_template = "%Y%m%d_%H%M"