Soft'N'Design Software
/
projects
/
debian6500.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
merge accepted
[debian6500.git]
/
master
/
root
/
bin
/
colorlog
1
#!/usr/bin/awk -f
2
/
TRACE
/ {
$
0
=
"
\033
[1;34m"
$
0
"
\033
[0;0m"
}
# blue
3
/
DEBUG
/ {
$
0
=
"
\033
[1;32m"
$
0
"
\033
[0;0m"
}
# green
4
/
INFO
/ {}
5
/
WARN
/ {
$
0
=
"
\033
[1;33m"
$
0
"
\033
[0;0m"
}
# yellow
6
/
ERROR
/ {
$
0
=
"
\033
[1;31m"
$
0
"
\033
[0;0m"
}
# red
7
{
print
}