Catalyst::Plugin::Log::Colorful

Catalyst Plugin for Colorful Log
Download

Catalyst::Plugin::Log::Colorful Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Daisuke Komatsu
  • Publisher web site:
  • http://search.cpan.org/~taro/

Catalyst::Plugin::Log::Colorful Tags


Catalyst::Plugin::Log::Colorful Description

Catalyst Plugin for Colorful Log Developer commentsSometimes when I am monitoring 'tail -f error_log' or './script/my_server.pl' during develop phase, I could not find log message because of a lot of logs. The Catalyst::Plugin::Log::Colorful module may help to find it out. This plugin is using Term::ANSIColor.Of course when you open log file with vi or some editor, the color wont change and also you will see additional log such as 'oraora'.SYNOPSIS sub foo : Private { my ($self , $c ) = @_; $c->log->debug('debug'); $c->log->info( 'info'); $c->log->warn( 'warn'); $c->log->error('error'); $c->log->fatal('fatal'); $c->log->debug('debug' , 'red', 'white'); $c->log->warn( 'warn' , 'blue' ); }myapp.yml # default color is set but can change. 'Plugin::Log::Colorful' : color_table : debug : color : white bg_color : blue warn : color : blue bg_color : green error : color : red bg_color : yellow fatal : color : red bg_color : green Requirements: · Perl


Catalyst::Plugin::Log::Colorful Related Software