Output colored debugging info

This commit is contained in:
olli 2023-01-17 09:30:17 +01:00
parent 987d31b60d
commit 3a42bb6b23

10
gaboshlib/g_echo_debug Normal file
View 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 $@
}