[Catalyst] debug mode or debug levels?

Matt Lawrence matt.lawrence at ymogen.net
Tue Mar 4 17:22:38 GMT 2008


Tyler Bird wrote:
> hi I want to only show certain log messages to my console based on the 
> log level 'debug'
> I believe catalyst supports log levels, but this doesn't seem to be 
> working
>
>
> if ( $c->is_debug() )
> {
>    $c->log("log message here..");
> }
>
>
I believe that's spelt:

if ($c->log->is_debug) {
    $c->log->debug("log message here..");
}

Have a look at docs for Catalyst::Log

Matt




More information about the Catalyst mailing list