This commit is contained in:
Strix 2024-06-02 22:13:33 +02:00
commit 1816522a71
11 changed files with 229 additions and 0 deletions

16
lib/logger Normal file
View file

@ -0,0 +1,16 @@
#!/bin/sh
__sc_log() {
level=$1; shift
echo "[$level] $@"
}
alias LOGD="__sc_log debug"
alias LOGI="__sc_log info"
alias LOGW="__sc_log warn"
alias LOGE="__sc_log error"
fatal_log() {
__sc_log fatal $@
exit 1
}