#logger #programs #who #correctly #how #stdout #line

bin+lib small-logger

a small logger for programs who do not know how to log correctly

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

#9 in #correctly


Used in small-deployer

Custom license

5.5MB
100K SLoC

JavaScript 99K SLoC // 0.2% comments Rust 321 SLoC // 0.0% comments

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.

Dependencies