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
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/