4 releases (2 breaking)
Uses old Rust 2015
0.2.1 | Apr 26, 2016 |
---|---|
0.2.0 | Feb 18, 2016 |
0.1.0 | Feb 15, 2016 |
0.0.2 | Apr 12, 2015 |
#6 in #correctly
24 downloads per month
Used in small-deployer
5.5MB
100K
SLoC
Small logger
This application allow you to read another app logs (stdout
and stderr
) and write them to a log file.
- reads stdout and stdin of your process
- adds a timestamps
- writes the result in a file that is composed of single JSON lines for later parsing
installing
cargo install small-logger
How to use?
Usage: small-logger [-d log_folder] [-n process_name] [COMMAND WITH PARAMETERS]
Options:
-d, --directory DIRECTORY
root log folder. Default is ./logs
-n, --name PROCESS pretty name for the process. Should be time invariant
and filesystem friendly. Default is process
-c, --change_directory WORKING_DIRECTORY
PWD for the process. Default is .
-h, --help print this help menu.
TODO
- add MARK syslog like to indicate process is still alive when idle for a long time.