Log::Contextual::Easy::Default(3pm)

Log::Contextual::Easy::Default3pm

Import all logging methods with warnlogger as default

Usage

In your module:

  package My::Module;
  use Log::Contextual::Easy::Default;
  log_debug { "your message" };
  Dlog_trace { $_ } @vars;

In your program:

  use My::Module;
  # enable warnings
  $ENV{MY_MODULE_UPTO}="TRACE";
  # or use a specific logger with set_logger / with_logger

Version

version 0.009001

Overview

By default, this module enables a Log::Contextual::WarnLogger with "env_prefix" based on the module's name that uses Log::Contextual::Easy. The logging levels are set to "trace" "debug", "info", "warn", "error", and "fatal" (in this order) and all logging functions ("log_...", "logS_...", "Dlog_...", and "Dlog...") are exported.

For what "::Default" implies, see "-default_logger" in Log::Contextual.

Releases

6 releases since Debian 8 (Jessie); the text changed 4 times.

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

Bugs

Please report any bugs or feature requests on the bugtracker website <https://github.com/haarg/Log-Contextual/issues>

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

Author

Arthur Axel "fREW" Schmidt <[email protected]>

From liblog-contextual-perl 0.009001-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.