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
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News