Log::Log4perl logging for Catalyst
This module provides a the Catalyst::Log manpage implementation that uses
the Log::Log4perl manpage as the underlying log mechanism. It provides all
the methods listed in the Catalyst::Log manpage, with the exception of:
levels
enable
disable
These methods simply return 0 and do nothing, as similar functionality is
already provided by the Log::Log4perl manpage.
These methods will all instantiate a logger with the component set to the
package who called it. For example, if you were in the MyApp::C::Main
package, the following:
package MyApp::C::Main;
sub default : Private {
my ( $self, $c ) = @_;
my $logger = $c->log;
$logger->debug("Woot!");
}
Would send a message to the Myapp.C.Main the Log::Log4perl manpage
component.
See the Log::Log4perl manpage for more information on how to configure
different logging mechanisms based on the component.
- Sources inherited from project devel:languages:perl
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout home:Tomcat42/perl-Catalyst-Log-Log4perl && cd $_
- Create Badge
Source Files
Filename | Size | Changed |
---|---|---|
Catalyst-Log-Log4perl-1.06.tar.gz | 0000025545 24.9 KB | |
cpanspec.yml | 0000000469 469 Bytes | |
perl-Catalyst-Log-Log4perl.changes | 0000001018 1018 Bytes | |
perl-Catalyst-Log-Log4perl.spec | 0000002981 2.91 KB |
Comments 0