This is a simple demo for configuring tracing to log messages to console and file.
- time: Log time in local timezone
- tracing: The tracing crate
- tracing-subscriber: The crate to output log messages
- tracing-appender: Log messages to file
- Local time is used for logging time
- Log messages are written to both console and file
- Console logs use
pretty
format with colors for better readability - File logs use
compact
format without colors for better text format and are rolled daily - There is a slight time difference between console logs and file logs