Modified Catalyst::Log to make it a bit easier to control logging output.
authorCurtis "Ovid" Poe <ovid@cpan.org>
Fri, 13 Jan 2006 21:25:17 +0000 (21:25 +0000)
committerCurtis "Ovid" Poe <ovid@cpan.org>
Fri, 13 Jan 2006 21:25:17 +0000 (21:25 +0000)
commitadee716c5ee8cda002acdaaa31764b72382101a3
tree6987ba201a34abab6ccbf0ead1e67d4dc5db3a0e
parent475616f8b8b4720721efd3a395197930832aba06
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 );
Makefile.PL
lib/Catalyst/Log.pm
t/unit_core_log.t [new file with mode: 0644]