logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Description

       This module will allow libraries (helper modules) to have a dependency to a small module instead of the
       full Log-Report distribution.  The full power of "Log::Report" is only released when the main program
       uses that module.  In that case, the module using the 'Optional' will also use the full Log::Report,
       otherwise the dressed-down Log::Report::Minimal version.

       For the full documentation:

       •   see Log::Report when it is used by main

       •   see Log::Report::Minimal otherwise

       The latter provides the same functions from the former, but is the simpelest possible way.

Inheritance

        Log::Report::Optional
          is a Exporter

License

       Copyrights 2013-2021 by [Mark Overmeer <mark@overmeer.net>]. For other contributors see ChangeLog.

       This  program  is  free  software;  you can redistribute it and/or modify it under the same terms as Perl
       itself.  See http://dev.perl.org/licenses/

perl v5.36.0                                       2022-12-06                         Log::Report::Optional(3pm)

Methods

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

Name

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

See Also

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

Synopsis

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

See Also