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
debug
level - Log at the
error
level - Writes event to event stream Example: event!(“committed”, block=“b”);
- 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
Structs
- A struct for writing logs to a file