Peter Sergeant > Infobot-0.91_05 > Infobot::Plugin::Log::ANSIColor

Download:
Infobot-0.91_05.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Source  

NAME ^

Infobot::Plugin::Log::ANSIColor - Relay and colour logging messages to STDOUT

DESCRIPTION ^

Output logging messages, coloured by logging level, to STDOUT

CONFIGURATION EXAMPLE ^

 log:
 ...
   'Pretty Terminal Colours':
     class : Infobot::Plugin::Log::ANSIColor
     level : 9 
     extras:
       colours:
         levels:
           1: bold red
           3: bold yellow
           5: bold white
         default: white
         package: cyan
         divider: bold white

CONFIGURATION OPTIONS ^

level

The logging level at and above which to record. 9 is the lowest, 1 is the highest. See Infobot::Log::Base for more details.

extras/colours/levels

The colour (according to those available from Term::ANSIColor) to use for each logging level. Note that these expand upward - in the above example, 5 and 4 are bold white, 3 and 2 are bold yellow, and 1 is bold red, while 9-5 are the default colour, white.

extras/colours/default

extras/colours/package

extras/colours/divider

The default logging colour, the package name colour, and the divider colour, respectively.

AUTHOR ^

Pete Sergeant -- pete@clueball.com

LICENSE ^

Copyright Pete Sergeant.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.