First commit
This commit is contained in:
commit
3faa417162
5 changed files with 50 additions and 0 deletions
10
.logger.sh
Normal file
10
.logger.sh
Normal file
|
@ -0,0 +1,10 @@
|
|||
# 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'
|
||||
|
||||
function log_info {
|
||||
printf "\n[$(date +%T)] [${G}Info$RESET] $1\n"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue