log-exec

exec command and log stdout and stderr


Keywords
log, cli, exec
License
Unlicense
Install
pip install log-exec==2020.12.3

Documentation

Installation

$ [sudo] pip install log-exec
$ [sudo] npm i -g log-exec

How it works

stdout and stderr are duplicated in log files:

$LOG_EXEC/<command>/out.log
$LOG_EXEC/<command>/err.log

Config

$ export LOG_EXEC=~/Library/Logs/log-exec # /usr/local/var/log/log-exec by default

Examples

$ log-exec script.sh

or use log-exec as interpreter:

script.sh

#!/usr/bin/env log-exec bash
...

readme42.com