init
This commit is contained in:
commit
1816522a71
11 changed files with 229 additions and 0 deletions
16
lib/logger
Normal file
16
lib/logger
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue