1Padre::Logger(3) User Contributed Perl Documentation Padre::Logger(3)
2
3
4
6 Padre::Logger - Compile-time logging library for Padre
7
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
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.1 2021-01-27 Padre::Logger(3)