runmat 0.4.5

High-performance MATLAB/Octave syntax mathematical runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::io::Write;

pub fn format_log_record(
    buf: &mut env_logger::fmt::Formatter,
    record: &log::Record,
) -> std::io::Result<()> {
    let timestamp = buf.timestamp_nanos();
    writeln!(
        buf,
        "[{} {:>5} {}] {}",
        timestamp,
        record.level(),
        record.target(),
        record.args()
    )
}