Available on crate feature
logging
only.Expand description
Utilities for logging
Structs§
- EnvFilter
- Wrapper to obtain a
tracing_subscriber::EnvFilter
that satisfies required bounds. - File
Logging - Configuration for the logfiles.
Enums§
- Rotation
- How often should a new file be created for file logs.
Functions§
- env_
file_ rust_ log - Parse
<bin>_FILE_RUST_LOG
astracing_subscriber::EnvFilter
. ReturnsNone
if not present. - init_
terminal_ and_ file_ logging - Initialize logging both in the terminal and file based.
- init_
terminal_ logging - Initialize logging in the terminal.