Output colored debugging info
This commit is contained in:
parent
987d31b60d
commit
3a42bb6b23
10
gaboshlib/g_echo_debug
Normal file
10
gaboshlib/g_echo_debug
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
function g_echo_debug {
|
||||||
|
[ -z "$1" ] && return 0
|
||||||
|
echo -en "\033[97m$(g_date_print) \033[35mDEBUG:"
|
||||||
|
cat <<< "$@"
|
||||||
|
echo -en "\033[0m"
|
||||||
|
[ -z $g_alltosyslog ] && return 0
|
||||||
|
g_logger $@
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user