aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/colorit.conf30
1 files changed, 30 insertions, 0 deletions
diff --git a/contrib/colorit.conf b/contrib/colorit.conf
new file mode 100644
index 000000000..77d57aa59
--- /dev/null
+++ b/contrib/colorit.conf
@@ -0,0 +1,30 @@
1dnl -*- m4 -*-
2dnl vim:ft=m4
3dnl
4dnl colorit(1) configuration for gnunet logs
5dnl
6divert(-1)
7dnl
8dnl Define some useful color variables
9dnl
10define(`black', `0')
11define(`red', `1')
12define(`green', `2')
13define(`yellow', `3')
14define(`blue', `4')
15define(`magenta', `5')
16define(`cyan', `6')
17define(`white', `7')
18dnl
19dnl Mark macro arguments: regexp foreground-color [background-color]
20dnl
21define(`mark', ``mark "$1"'' `ifelse(`$#', `3', ``"\033[3$2;4$3m"'', ``"\033[3$2m"'')' `"\033[m"')
22dnl
23divert
24
25mark(`^[A-Z][a-z]{2} .[0-9] [0-9:]{8}(-[0-9]{6})?', yellow)
26
27mark(`ERROR', red)
28mark(`WARNING', yellow)
29mark(`INFO', green)
30mark(`DEBUG', cyan)