9133564455
Ajout de couleurs dans les logs
8 lines
112 B
Plaintext
8 lines
112 B
Plaintext
NORMAL='\e[39m'
|
|
RED='\e[31m'
|
|
|
|
msglog() {
|
|
DATE=$(date '+%Y %b %d %H:%M:%S')
|
|
echo ${DATE} ${RED}${@}${NORMAL}
|
|
}
|