roblox-studio-linux/.logger.sh

10 lines
386 B
Bash

# https://linuxhandbook.com/change-echo-output-color/#ansi-escape-codes-for-the-colored-output
R='\033[0;31m' #'0;31' is Red's ANSI color code
G='\033[0;32m' #'0;32' is Green's ANSI color code
Y='\033[1;32m' #'1;32' is Yellow's ANSI color code
B='\033[0;34m' #'0;34' is Blue's ANSI color code
RESET='\033[0m'
log_info() {
printf "\n[$(date +%T)] [${G}Info$RESET] %s\n" "$*"
}