NAME

Catalyst::Log - Catalyst Log Class

SYNOPSIS

$log = $c->log;
$log->debug($msg, @args);
$log->dump($ref);
$log->error($msg, @args);
$log->info($msg, @args);
$log->warn($msg, @args);

See Catalyst.

DESCRIPTION

This module provides the default, simple logging functionality for Catalyst. If you want something different set $c-log> in your application module, e.g.:

$c->log( MyLogger->new );

Your logging object is expected to provide the interface described here.

METHODS

$log->debug($msg, @args)

Logs a debugging message.

$log->dump($ref)

Logs a formatted dump of a variable passed by reference (uses Data::Dumper).

$log->error($msg, @args)

Logs an error message.

$log->info($msg, @args)

Logs an informational message.

$log->warn($msg, @args)

Logs a warning message.

SEE ALSO

Catalyst.

AUTHOR

Sebastian Riedel, sri@cpan.org

COPYRIGHT

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