gnunet

Main GNUnet Logic
Log | Files | Refs | Submodules | README | LICENSE

colorit.conf (656B)


      1 dnl -*- m4 -*-
      2 dnl vim:ft=m4
      3 dnl
      4 dnl colorit(1) configuration for gnunet logs
      5 dnl
      6 divert(-1)
      7 dnl
      8 dnl Define some useful color variables
      9 dnl
     10 define(`black',   `0')
     11 define(`red', 	  `1')
     12 define(`green',   `2')
     13 define(`yellow',  `3')
     14 define(`blue', 	  `4')
     15 define(`magenta', `5')
     16 define(`cyan',    `6')
     17 define(`white',   `7')
     18 dnl
     19 dnl Mark macro arguments: regexp foreground-color [background-color]
     20 dnl
     21 define(`mark', ``mark "$1"''  `ifelse(`$#', `3', ``"\033[3$2;4$3m"'', ``"\033[3$2m"'')' `"\033[m"')
     22 dnl
     23 divert
     24 
     25 mark(`^[A-Z][a-z]{2} .[0-9] [0-9:]{8}(-[0-9]{6})?', yellow)
     26 
     27 mark(`ERROR', red)
     28 mark(`WARNING', yellow)
     29 mark(`INFO', green)
     30 mark(`DEBUG', cyan)