Skip to main content

Crate logger_core

Crate logger_core 

Source

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_secs seconds. Uses a static AtomicU64 per call site to track the last log time.

Structs§

InitiateOnce
Reloads

Enums§

Level

Statics§

INITIATE_ONCE

Functions§

create_directory_from_env
Attempt to read a directory path from an environment variable. If the environment variable envname exists and contains a valid path - this function will create and return that path. In any case of failure, this method returns None (e.g. the environment variable exists but contains an empty path etc)
init
log
log_debug
log_error
log_info
log_trace
log_warn