pretty printing to shell. log support coming next push.

This commit is contained in:
2025-06-30 11:44:19 -05:00
parent f0e8482e71
commit a8a07b7c5d

View File

@@ -28,6 +28,14 @@ function print_error()
tput sgr0 tput sgr0
} }
log_info_message() {
local message="$1"
local logfile="/var/log/my_script.log" # Define your log file path
echo "$message" | tee -a "$logfile"
}
function error_out() function error_out()
{ {
print_error "$1" print_error "$1"