1Log::Report::Optional(3U)ser Contributed Perl DocumentatiLoong::Report::Optional(3)
2
3
4
6 Log::Report::Optional - pick Log::Report or ::Minimal
7
9 Log::Report::Optional
10 is a Exporter
11
13 # Use Log::Report when already loaded, otherwise Log::Report::Minimal
14 package My::Package;
15 use Log::Report::Optional 'my-domain';
16
18 This module will allow libraries (helper modules) to have a dependency
19 to a small module instead of the full Log-Report distribution. The
20 full power of "Log::Report" is only released when the main program uses
21 that module. In that case, the module using the 'Optional' will also
22 use the full Log::Report, otherwise the dressed-down
23 Log::Report::Minimal version.
24
25 For the full documentation:
26
27 · see Log::Report when it is used by main
28
29 · see Log::Report::Minimal otherwise
30
31 The latter provides the same functions from the former, but is the
32 simpelest possible way.
33
35 Log::Report::Optional->usedBy()
36 Returns the classes which loaded the optional module.
37
39 This module is part of Log-Report-Optional distribution version 1.06,
40 built on February 02, 2018. Website: http://perl.overmeer.net/CPAN/
41
43 Copyrights 2013-2018 by [Mark Overmeer <mark@overmeer.net>]. For other
44 contributors see ChangeLog.
45
46 This program is free software; you can redistribute it and/or modify it
47 under the same terms as Perl itself. See http://dev.perl.org/licenses/
48
49
50
51perl v5.30.0 2019-07-26 Log::Report::Optional(3)