Log4bash: Logging for Linux Shell

Apr 28, 2009

With version 1.0, log4bash makes its first appearance in providing logging functions for shell scripts.

With version 1.0, log4bash makes its first appearance in providing logging functions for shell scripts.

The open source project is itself a bash script tailored for the GNU project shell. Developer Philip Paterson recommends the log4sh logging framework for users of other UNIX shells.

Log4bash uses the log4j Java framework as model and allows creation of easy to read and parse log files from bash scripts. It provides six log levels from FATAL to DEBUG and can display logging output to the screen along with log files. The documentation includes a working sample script.

Log4bash is under LGPL 2.1 and available for download from the project page.

Related content

comments powered by Disqus

Issue 174/2015

Buy this issue as a PDF

Digital Issue: Price $9.99
(incl. VAT)

News