Crate tlog

source · []
Expand description

A dumb debug tool which writes logs into file. Timestamp & pid will be added to the logs.

Usage

use tlog::tlog;

tlog!("{} = {}", "5 x 7", 5 * 7);

Logs will be written to file /tmp/t.log unless changed with env TMP_LOG_FILE.

$ cat /tmp/t.log
[2022-09-05 11:10:31.763][15235] 5 x 7 = 35

Macros

Structs

Functions