1SVK::Logger(3)        User Contributed Perl Documentation       SVK::Logger(3)
2
3
4

NAME

6       SVK::Logger - logging framework for SVK
7

SYNOPSIS

9         use SVK::Logger;
10
11         $logger->warn('foo');
12         $logger->info('bar');
13
14       or
15
16         use SVK::Logger '$foo';
17
18         $foo->error('bad thingimajig');
19
20   DESCRIPTION
21       SVK::Logger is a wrapper around Log::Log4perl. When using the module,
22       it imports into your namespace a variable called $logger (or you can
23       pass a variable name to import to decide what the variable should be)
24       with a category based on the name of the calling module.
25

MOTIVATION

27       Ideally, for support requests, if something is not going the way it
28       should be we should be able to tell people: "rerun the command with the
29       SVKLOGLEVEL environment variable set to DEBUG and mail the output to
30       $SUPPORTADDRESS". On Unix, this could be accomplished in one command
31       like so:
32
33         env SVKLOGLEVEL=DEBUG svk <command that failed> 2>&1 | mail $SUPPORTADDRESS
34
35
36
37perl v5.32.1                      2021-01-27                    SVK::Logger(3)
Impressum