HTTP::Engine::FirePHP

Log to FirePHP from within HTTP::Engine
Download

HTTP::Engine::FirePHP Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Marcel GrĂ¼nauer
  • Publisher web site:
  • http://search.cpan.org/~marcel/

HTTP::Engine::FirePHP Tags


HTTP::Engine::FirePHP Description

Log to FirePHP from within HTTP::Engine If you are developing a web application and don't want to or can't check the error log, the traditional way is to include debug messages in the HTML page. However, this messes up the layout and mixes content with logging; the two really need to be separate.FirePHP is a Firebug plugin which enables you to log to your Firebug Console by sending certain HTTP headers in the HTTP response. FirePHP is not just useful for PHP, though; any server-side application that can manipulate HTTP headers can log to Firebug.The FirePHP response headers use the Wildfire protocol. The CPAN module FirePHP::Dispatcher can generate these headers.HTTP::Engine::FirePHP is a Perl module that integrates FirePHP::Dispatcher with HTTP::Engine. By simply using this module, HTTP::Engine::Response gets a fire_php() accessor through which you can log to FirePHP.SYNOPSIS use HTTP::Engine::Response; use HTTP::Engine::FirePHP; sub request_handler { my $req = shift; my $res = HTTP::Engine::Response->new; # ... $res->fire_php->log('foo'); # ... $res; } Requirements: · Perl


HTTP::Engine::FirePHP Related Software