Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

exec command and log stdout and stderr

Project description

Installation

$ [sudo] pip install 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

Scripts usage

command usage
log-exec usage: log-exec command [args ...]

Examples

$ log-exec script.sh

or use log-exec as interpreter:

script.sh

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

python-readme-generator

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for log-exec, version 2019.5.15
Filename, size File type Python version Upload date Hashes
Filename, size log-exec-2019.5.15.tar.gz (1.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page