Catalyst::Plugin::Observe

Catalyst::Plugin::Observe Observe engine events, for debugging purposes.
Download

Catalyst::Plugin::Observe Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Christian Hansen
  • Publisher web site:
  • http://search.cpan.org/~mramberg/Catalyst-Engine-Server-0.02/lib/Catalyst/Engine/Server.pm

Catalyst::Plugin::Observe Tags


Catalyst::Plugin::Observe Description

Catalyst::Plugin::Observe Observe engine events, for debugging purposes. Catalyst::Plugin::Observe Observe engine events, for debugging purposes.SYNOPSIS use Catalyst qw; # register the observer method as a callback to prepare_path MyApp->add_subscriber( 'prepare_path', &observer ); # write callback to describe what happened sub observer { my ( $c, $event, @args ) = @_; $c->log->info( "observed " . $event . " with arguments " . join( 'n', @args ) ); }Catalyst::Plugin::Observe allows you to register your own callbacks to specific Engine events (method calls), and to be notified through the callback when they occur. When the Engine calls the event, your callback will be called with the same arguments, which you can then display (etc.) as necessary.CALLBACK VARIABLES$eventThe Engine event to which the callback is registered. See "OBSERVABLE EVENTS" below.@argsThe arguments passed to the Engine event.OBSERVABLE EVENTSdispatch finalize finalize_body finalize_cookies finalize_error finalize_headers forward prepare prepare_action prepare_body prepare_connection prepare_cookies prepare_headers prepare_parameters prepare_path prepare_request prepare_uploadsRequirements:· Perl


Catalyst::Plugin::Observe Related Software