Bashinator is a bash shell script framework. It provides flexible and powerful message handling that lets you print to stdout, log (to syslog or a logfile), and mail messages with a single message function. Exhaustive information is included in messages to ease debugging. This information includes timestamps, message severity, source file, line numbers, and function names. A facility for tracing the function call stack is provided. Sub-command output can be logged by capturing the stdout/stderr of external commands to a dedicated temporary logfile. The framework also provides lockfile handling.