Module diem_logger::prelude
source · Re-exports
pub use crate::sample;pub use crate::sample;pub use crate::sample::SampleRate;pub use crate::sample::Sampling;
Macros
- Log at the
debuglevel - Log at the
errorlevel - Writes event to event stream Example: event!(“committed”, block=“b”);
- Log at the
infolevel - Samples a given function at a
SampleRate, useful for periodically emitting logs or metrics on high throughput pieces of code. - Log at the
tracelevel - Log at the
warnlevel
Structs
- A struct for writing logs to a file