This commit is contained in:
2026-03-15 04:54:51 +01:00
parent 0fb8fe5a66
commit 7ac487f640
81 changed files with 3867 additions and 0 deletions

19
lib/log.sh Normal file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
log_init() {
: > "$RUNTIME_LOG_FILE"
}
log_write() {
local level="$1"
local message="$2"
printf '%s [%s] %s\n' "$(date '+%F %T')" "$level" "$message" >> "$RUNTIME_LOG_FILE"
}
log_info() {
log_write "INFO" "$1"
}
log_error() {
log_write "ERROR" "$1"
}