Skip to content

Instantly share code, notes, and snippets.

@djsigmann
djsigmann / bash_logging.md
Created August 21, 2025 21:44 — forked from GingerGraham/bash_logging.md
Bash Logging

Bash Logging Module

A flexible, reusable logging module for Bash scripts that provides standardized logging functionality with various configuration options.

Features

  • Standard syslog log levels (DEBUG, INFO, WARN, ERROR, CRITICAL, etc.)
  • Console output with color-coding by severity
  • Optional file output
  • Optional systemd journal logging