[−][src]Type Definition vxdraw::Logger
type Logger = Box<dyn FnMut(u8, Box<dyn Fn(&mut Formatter) -> Result + Send + Sync>)>;
Logger bridge type used when initializing VxDraw
The first argument is the log level, with 0 being severe and 255 being trace. The second argument is the context label. The final argument is an arbitrary formatter that outputs text, this text may be on multiple lines.
In most tests we use the logger from another crate because it has spawn_test
, which is useful
for quickly debugging a failing test.