This script provides a simple and customizable logging system for Bash scripts. It allows for log level control, color-coded messages, and destination management.
-
Log Level Control:
- Supports five log levels:
DEBUG
,INFO
,WARNING
,ERROR
, andCRITICAL
. - The current log level can be dynamically updated.
- Supports five log levels:
-
Color-Coded Messages:
- Each log level is associated with a distinct color for better visibility.
-
Customizable Output:
- Messages can be sent to a specified file descriptor.
-
Timestamps:
- Logs include timestamps for traceability.
- The
abs.lib.colors
library for color definitions.