10 lines
511 B
Bash
Executable File
10 lines
511 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo -e "\033[94m[INFO]\033[0m conencting to 219 and retrieving supervisor log output:"
|
|
ssh uad@192.168.1.219 "tail -f /home/uad/tello-commander/src/server/supervisor/tello-server.out.log" | \
|
|
awk '
|
|
/WARNING/ {gsub(/WARNING/, "\033[33m&\033[0m"); print} # Yellow for WARNING
|
|
/ERROR|CRIT/ {gsub(/(ERROR|CRIT)/, "\033[31m&\033[0m"); print} # Red for ERROR/CRIT
|
|
/INFO/ {gsub(/INFO/, "\033[37m&\033[0m"); print} # White for INFO
|
|
/DEBUG/ {gsub(/DEBUG/, "\033[34m&\033[0m"); print} # Blue for DEBUG
|
|
' |