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§
- diem_
debug - Log at the
debuglevel - diem_
error - Log at the
errorlevel - diem_
info - Log at the
infolevel - diem_
sample - Samples a given function at a
SampleRate, useful for periodically emitting logs or metrics on high throughput pieces of code. - diem_
trace - Log at the
tracelevel - diem_
warn - Log at the
warnlevel - event
- Writes event to event stream Example: event!(“committed”, block=“b”);
Structs§
- File
Writer - A struct for writing logs to a file
- Rolling
File Writer