4 releases
0.1.3 | Sep 5, 2022 |
---|---|
0.1.2 | Sep 5, 2022 |
0.1.1 | Sep 5, 2022 |
0.1.0 | Sep 5, 2022 |
#868 in Debugging
4KB
69 lines
tlog
A dumb debug tool which writes logs into a file.
lib.rs
:
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
Dependencies
~780KB
~14K SLoC