Module 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§

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§

FileWriter
A struct for writing logs to a file
RollingFileWriter

Enums§

SecurityEvent