gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r29289 - gnunet/contrib


From: gnunet
Subject: [GNUnet-SVN] r29289 - gnunet/contrib
Date: Mon, 16 Sep 2013 07:00:32 +0200

Author: tg
Date: 2013-09-16 07:00:32 +0200 (Mon, 16 Sep 2013)
New Revision: 29289

Added:
   gnunet/contrib/colorit.conf
Log:
colorit.conf

Added: gnunet/contrib/colorit.conf
===================================================================
--- gnunet/contrib/colorit.conf                         (rev 0)
+++ gnunet/contrib/colorit.conf 2013-09-16 05:00:32 UTC (rev 29289)
@@ -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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]