Skip to content

Instantly share code, notes, and snippets.

View ApprenticeofEnder's full-sized avatar

Robert Babaev ApprenticeofEnder

View GitHub Profile

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
  • Configurable stdout/stderr output stream split
  • Optional file output