The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

FirePHP::LogConnector::Catalyst::Log

SYNOPSIS

In your MyApp.pm:

  use Catalyst qw/ ... +FirePHP /;

DESCRIPTION

FirePHP::LogConnector::Catalyst::Log hijacks a Catalyst::Log instance, connects itself to the current FirePHP::Dispatcher and delegates all log messages to both simultaneously.

METHODS

$class->new( $catalyst )

Returns a new log connector for Catalyst::Log loggers

$self->dispatch_request

Handler for controlling the dispatch cycle and binding FirePHP::Dispatcher to the current response headers.

$self->flush_log

Method to write all pending FirePHP messages to the response headers and flushes the logging cache

$this->can

Overrides can to accommodate delegation to the original logger

$self->debug( $message )

Sends a debug log message to both the logger and FirePHP. The FirePHP message uses the 'info' priority.

$self->info( $message )

Sends a informational log message to both the logger and FirePHP.

$self->warn( $message )

Sends a warning message to both the logger and FirePHP.

$self->error( $message )

Sends a error message to both the logger and FirePHP.

$self->fatal( $message )

Sends a fatal error message to both the logger and FirePHP. The FirePHP message uses the 'error' priority.

SEE ALSO

http://www.firephp.org, Catalyst, Catalyst::Log, FirePHP::Dispatcher, FirePHP::LogConnector

AUTHOR

Sebastian Willert, willert@cpan.org

COPYRIGHT AND LICENSE

Copyright 2009 by Sebastian Willert <willert@cpan.org>

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