Log::Report::Optional(3pm)

Log::Report::Optional3pm

Pick log::report or ::minimal

Usage

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

Inheritance

 Log::Report::Optional
   is an Exporter

Overview

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.

Methods

$class->usedBy()

Returns the classes which loaded the optional module.

Releases

7 releases since Debian 8 (Jessie); the text changed 5 times.

  1. 8
  2. 9
  3. 10
  4. 11
  5. 12–13
  6. Arch

License

For contributors see file ChangeLog.

This software is copyright (c) 2013-2025 by Mark Overmeer.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

From perl-log-report-optional 1.08-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.