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 launcher script
10         $ENV{PADRE_DEBUG} = 1;
11
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.32.0                      2020-07-28                  Padre::Logger(3)
Impressum