fshlib: shell library

2026/01/03

Github repo: https://github.com/filmil/fshlib

fshlib

Test Publish BCR Publish Tag and Release

fshlib is a simple shell library for logging. It provides a set of functions to log messages with different severity levels.

Usage

To use the library, source the log.bash file in your script:

source "path/to/log.bash"

Then you can use the logging functions:

log::info "This is an info message"
log::warn "This is a warning message"
log::error "This is an error message"

Functions

Example

#!/usr/bin/env bash

source "path/to/log.bash"

log::info "Starting the script"
log::warn "Something might be wrong"
log::error "Something went wrong"

echo "some output" | log::prefix "[my-prefix] "