Logging routine. Supports message stream from STDIN or message from options.

Usage:

'Log meassage' | log
log -l ERROR 'Something goes wrong :('
some_command | | log -l DEBUG -f local1

Options:

  • -f FACILITY - default = local1
  • -l LEVEL - default = debug
  • -o - print log to STDOUT
  • -p PATH - either directory path for logs or syslog to log to Syslog
  • -t TIME - manually specify date and time for log records


blog comments powered by Disqus

Published

02 April 2014

Category

scripts

Tags

2020

August

June

2018

September

2017

September

August

April

2016

August

April

2015

August

2014

April

Category

scripts

Tags