{"repo":"GingerGraham/bash-logger","free":true,"listed":false,"github":"https://github.com/GingerGraham/bash-logger","clone":"git clone https://github.com/GingerGraham/bash-logger.git","description":"A flexible, reusable logging module for Bash scripts that provides standardized logging functionality with various configuration options.","language":"Shell","stars":18,"topics":["bash","bash-script","bash-scripting","linux-shell","logging","logging-library"],"license":"MIT","category":"cli-tools","readme_excerpt":"Bash Logger A flexible, reusable logging module for Bash scripts that provides standardized logging functionality with various configuration options. [!NOTE] This is a expansion of the originally published bash logging GitHub gist published by @GingerGraham. Primary artifact The core deliverable of this repository is logging.sh . It is intentionally kept as a single, self-contained (and yes, long) Bash file so you can drop it next to your scripts and source it without any packaging steps. Everything else in the repo - docs, demos, and pipeline scripts - exists to support using that file. 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 Optional systemd journal logging Customizable log format UTC or local time support INI configuration file support Runtime configuration changes Special handling for sensitive data Secure-by-default newline sanitization to prevent log injection Secure-by-default ANSI code stripping to prevent terminal manipulation attacks Configurable log line length limits for DoS resistance TOCTOU race condition protection during log file creation Quick Start See Getting Started for detailed installation and basic usage instructions. Documentation Core Documentation Getting Started - Installation and basic usage Log Levels - Understanding severity levels Initialization - Configuring the logger at startup Configuration -","default_branch":null,"files":null,"tree":[],"storefront":"/r/GingerGraham","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/GingerGraham/bash-logger/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}