Modified Catalyst::Log to make it a bit easier to control logging output.
Tests are included, but these are only the minimum necessary to test the
desired behavior. I've updated the docs (and fixed a small POD error, too).
This patch also adds a dependency on Test::NoWarnings.
Basically, you do this:
package Catalyst::Log::Subclass;
our @ISA = 'Catalyst::Log';
sub _send_to_log {
my $self = shift;
# @_ contains the log messages. Do with them
# what you will
}
In your app, you should then be able to do this to get your new behavior:
$c->log( Catalyst::Log::Subclass->new );