Gungho::LogGungho::Log is a Gungho log class. | |
Download |
Gungho::Log Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Sebastian Riedel
- Publisher web site:
- http://search.cpan.org/~mramberg/Catalyst-View-PSP-0.01/lib/Catalyst/Helper/View/PSP.pm
Gungho::Log Tags
Gungho::Log Description
Gungho::Log is a Gungho log class. Gungho::Log is a Gungho log class.SYNOPSIS $log = $c->log; $log->debug($message); $log->info($message); $log->warn($message); $log->error($message); $log->fatal($message); if ( $log->is_debug ) { # expensive debugging }This module provides the default, simple logging functionality for Gungho. 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. Good alternatives to consider are Log::Log4Perl and Log::Dispatch.If you want to be able to log arbitrary warnings, you can do something along the lines of $SIG{__WARN__} = sub { MyApp->log->warn(@_); };however this is (a) global, (b) hairy and (c) may have unexpected side effects. Don't say we didn't warn you. Requirements: · Perl
Gungho::Log Related Software