From: Kennedy Clark Date: Fri, 1 May 2009 22:20:43 +0000 (+0000) Subject: Add comment about possible warnings in Template::Base and log levels X-Git-Tag: v5.8005~165 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=commitdiff_plain;h=ebde193e2c1af944fc589640ae774732b344a75e;hp=fa025310d03b9a7c3da9368c6cd7aec3ced82820 Add comment about possible warnings in Template::Base and log levels --- diff --git a/lib/Catalyst/Manual/Tutorial/Debugging.pod b/lib/Catalyst/Manual/Tutorial/Debugging.pod index a7e175a..22d7286 100644 --- a/lib/Catalyst/Manual/Tutorial/Debugging.pod +++ b/lib/Catalyst/Manual/Tutorial/Debugging.pod @@ -93,6 +93,16 @@ template view use: [% c.log.debug("This is a test log message") %] +As with many other logging facilities, you a method is defined for +each of the following "logging levels" (in increasing order of +severity/importance): + + $c->log->debug + $c->log->info + $c->log->warn + $c->log->error + $c->log->fatal + You can also use L in both Catalyst code (Clog-Edebug("\$var is: ".Dumper($var));)>) and TT templates (C<[% Dumper.dump(book) %]>. diff --git a/lib/Catalyst/Manual/Tutorial/Testing.pod b/lib/Catalyst/Manual/Tutorial/Testing.pod index 2fe879a..eb67ebb 100644 --- a/lib/Catalyst/Manual/Tutorial/Testing.pod +++ b/lib/Catalyst/Manual/Tutorial/Testing.pod @@ -116,6 +116,29 @@ environment variable. For example: $ CATALYST_DEBUG=0 prove --lib lib t +B Depending on the versions of various modules you have +installed, you might get some C warnings -- you can +ignore these. If you want to elliminate the warnings, you can +edit C to disable and then re-enable warnings +are the C line in C. +You can locate where C is located with the +following command (it's probably in a place similar to +C): + + perldoc -l Template::Base + +Edit the file and modify C to match: + + ... + { no strict qw( refs ); + # Disable warnings + no warnings; + $argnames = \@{"$class\::BASEARGS"} || [ ]; + # Turn warnings back on + use warnings; + } + ... + During the C and C tests, you might notice the C warning message. To execute the Pod-related tests, add C to the C