16 lines
229 B
Text
16 lines
229 B
Text
|
#!/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
|
||
|
}
|