aboutsummaryrefslogtreecommitdiff
path: root/contrib/conf/colorit/colorit.conf
blob: 77d57aa59e77c8dc2cbcf74d31e54d69f65ec2a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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)