1Log::Contextual::Easy::UPsaecrkaCgoen(t3r)ibuted Perl DoLcougm:e:nCtoanttieoxntual::Easy::Package(3)
2
3
4
6 Log::Contextual::Easy::Package - Import all logging methods with
7 WarnLogger as default package logger
8
10 version 0.008001
11
13 In your module:
14
15 package My::Module;
16 use Log::Contextual::Easy::Package;
17
18 log_debug { "your message" };
19 Dlog_trace { $_ } @vars;
20
21 In your program:
22
23 use My::Module;
24
25 # enable warnings
26 $ENV{MY_MODULE_UPTO}="TRACE";
27
28 # or use a specific logger with set_logger / with_logger
29
31 By default, this module enables a Log::Contextual::WarnLogger with
32 "env_prefix" based on the module's name that uses
33 Log::Contextual::Easy. The logging levels are set to "trace" "debug",
34 "info", "warn", "error", and "fatal" (in this order) and all logging
35 functions (log_..., logS_..., Dlog_..., and Dlog...) are exported.
36
37 For what "::Package" implies, see "-package_logger" in Log::Contextual.
38
40 Log::Contextual::Easy::Default
41
43 Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com>
44
46 This software is copyright (c) 2018 by Arthur Axel "fREW" Schmidt.
47
48 This is free software; you can redistribute it and/or modify it under
49 the same terms as the Perl 5 programming language system itself.
50
51
52
53perl v5.34.0 2022-01-21 Log::Contextual::Easy::Package(3)