Catalyst::Plugin::FirePHP

Sends Catalyst log messages to a FirePHP console
Download

Catalyst::Plugin::FirePHP Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Sebastian Willert
  • Publisher web site:
  • http://search.cpan.org/~willert/

Catalyst::Plugin::FirePHP Tags


Catalyst::Plugin::FirePHP Description

Sends Catalyst log messages to a FirePHP console Catalyst::Plugin::FirePHP is a Perl module that automatically binds the current response headers to a newly created FirePHP::Dispatcher in use and on demand creates nested groups for all called actions.The only thing you need to do to start using FirePHP is include this plugin in your plugin list. Everything else should happen automatically, no config is needed.This plugin tries to be as unintrusive as possible if your application doesn't run in debug mode, but it is highly recommended to drop it altogether in production servers.SYNOPSISIn your application class (e.g. MyApp.pm): use Catalyst ( ..., '+Catalyst::Plugin::FirePHP' ); use Catalyst::Log::Log4perl; __PACKAGE__->config( name => 'Just a Catalyst application', FirePHP => { action_grouping => 1, compact => 1 } ); # only if you want to change the appender layout to use cspecs __PACKAGE__->log( Catalyst::Log::Log4perl->new( 'log4perl.conf', override_cspecs => 1 ));In your log4perl config (only if you want to change the message layout): log4perl.rootLogger = DEBUG, SCREEN, FIREPHP log4perl.appender.SCREEN = Log::Log4perl::Appender::Screen log4perl.appender.SCREEN.layout = SimpleLayout log4perl.appender.FIREPHP = FirePHP::Log4perl::Appender log4perl.appender.FIREPHP.layout = FirePHP::Log4perl::LayoutAnd later... $c->log->debug("This is using log4perl AND FirePHP!"); Requirements: · Perl


Catalyst::Plugin::FirePHP Related Software