summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2013-09-16 05:00:32 +0000
committerGabor X Toth <*@tg-x.net>2013-09-16 05:00:32 +0000
commita7bb525278fcf8a29daa8f841e99515dba690d09 (patch)
treeff1da18fa5bf0702cfe2f3e1c52713767bb5dd9c /contrib
parent0aa0652a822c33258ca7d2fde2c6b017dbd75912 (diff)
colorit.conf
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 @@
+dnl -*- m4 -*-
+dnl vim:ft=m4
+dnl
+dnl colorit(1) configuration for gnunet logs
+dnl
+divert(-1)
+dnl
+dnl Define some useful color variables
+dnl
+define(`black', `0')
+define(`red', `1')
+define(`green', `2')
+define(`yellow', `3')
+define(`blue', `4')
+define(`magenta', `5')
+define(`cyan', `6')
+define(`white', `7')
+dnl
+dnl Mark macro arguments: regexp foreground-color [background-color]
+dnl
+define(`mark', ``mark "$1"'' `ifelse(`$#', `3', ``"\033[3$2;4$3m"'', ``"\033[3$2m"'')' `"\033[m"')
+dnl
+divert
+
+mark(`^[A-Z][a-z]{2} .[0-9] [0-9:]{8}(-[0-9]{6})?', yellow)
+
+mark(`ERROR', red)
+mark(`WARNING', yellow)
+mark(`INFO', green)
+mark(`DEBUG', cyan)