Closed Anders429 closed 2 years ago
Logging can be optionally provided by an optional dependency on the log crate.
log
An idiomatic way to provide this logging is to do it similar to how the rand crate does it. They define aliases for each log level that wrap the cfg-gated statements: https://github.com/rust-random/rand/blob/master/src/lib.rs#L63-L92
rand
cfg
These should be done in a separate module. Perhaps something like internal_log.
internal_log
Logging can be optionally provided by an optional dependency on the
log
crate.An idiomatic way to provide this logging is to do it similar to how the
rand
crate does it. They define aliases for each log level that wrap thecfg
-gated statements: https://github.com/rust-random/rand/blob/master/src/lib.rs#L63-L92These should be done in a separate module. Perhaps something like
internal_log
.