Skip to main content

exec command and log stdout and stderr

Project description

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

Project details


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 2020.7.1
Filename, size File type Python version Upload date Hashes
Filename, size log-exec-2020.7.1.tar.gz (1.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page