1Padre::Logger(3)      User Contributed Perl Documentation     Padre::Logger(3)
2
3
4

NAME

6       Padre::Logger - Compile-time logging library for Padre
7

SYNOPSIS

9         # In the launch/dev.pl script
10         BEGIN {
11             $Padre::Logger::DEBUG = 1;
12         }
13
14         use Padre;
15
16         # In each Padre::Foo class
17         use Padre::Logger;
18
19         sub method {
20             TRACE('->method') if DEBUG;
21
22             # Your code as normal
23         }
24

DESCRIPTION

26       This is a logging utility class for Padre. It provides a basic set of
27       simple functionality that allows for logging/debugging/tracing
28       statements to be used in Padre that will compile out of the application
29       when not in use.
30
31
32
33perl v5.12.1                      2010-06-11                  Padre::Logger(3)
Impressum