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