Soft'N'Design Software
/
projects
/
debian6500.git
/ blame
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blob
|
blame
(incremental) |
history
|
HEAD
add a script to color log
[debian6500.git]
/
master
/
root
/
bin
/
colorlog
Commit
Line
Data
1c44adb8
LM
1
#!/usr/bin/awk -f
2
/TRACE/ {$0="\033[0;34m"$0"\033[0;0m"}
3
/DEBUG/ {$0="\033[0;32m"$0"\033[0;0m"}
4
/INFO/ {}
5
/WARN/ {$0="\033[0;33m"$0"\033[0;0m"}
6
/ERROR/ {$0="\033[0;31m"$0"\033[0;0m"}
7
{print}