1Log::Report::Optional(3U)ser Contributed Perl DocumentatiLoong::Report::Optional(3)
2
3
4

NAME

6       Log::Report::Optional - pick Log::Report or ::Minimal
7

INHERITANCE

9        Log::Report::Optional
10          is a Exporter
11

SYNOPSIS

13        # Use Log::Report when already loaded, otherwise Log::Report::Minimal
14        package My::Package;
15        use Log::Report::Optional 'my-domain';
16

DESCRIPTION

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

METHODS

35       Log::Report::Optional->usedBy()
36           Returns the classes which loaded the optional module.
37

SEE ALSO

39       This module is part of Log-Report-Optional distribution version 1.07,
40       built on January 15, 2021. Website: http://perl.overmeer.net/CPAN/
41

LICENSE

43       Copyrights 2013-2021 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.32.0                      2021-01-15          Log::Report::Optional(3)
Impressum