Macros§
- log_
debug_ lazy - log_
debug_ rate_ limited - log_
error_ lazy - log_
info_ lazy - log_
info_ rate_ limited - log_
trace_ lazy - Lazy logging macros that only evaluate the message expression if the log level is enabled.
This avoids the cost of
format!(...)when the level is disabled. - log_
warn_ lazy - log_
warn_ rate_ limited - Rate-limited logging macro. Logs at most once per
interval_secsseconds. Uses a static AtomicU64 per call site to track the last log time.
Structs§
Enums§
Statics§
Functions§
- create_
directory_ from_ env - Attempt to read a directory path from an environment variable. If the environment variable
envnameexists and contains a valid path - this function will create and return that path. In any case of failure, this method returnsNone(e.g. the environment variable exists but contains an empty path etc) - init
- log
- log_
debug - log_
error - log_
info - log_
trace - log_
warn