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
debug
level - diem_
error - Log at the
error
level - diem_
info - Log at the
info
level - 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
trace
level - diem_
warn - Log at the
warn
level - 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