GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Log::Contextual::Easy::Default(3) User Contributed Perl Documentation Log::Contextual::Easy::Default(3)

Log::Contextual::Easy::Default - Import all logging methods with WarnLogger as default

version 0.008001

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

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.

Log::Contextual::Easy::Package

Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>

This software is copyright (c) 2018 by Arthur Axel "fREW" Schmidt.

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

2018-01-19 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.