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
22       SVK::Logger is a wrapper around Log::Log4perl. When using the module,
23       it imports into your namespace a variable called $logger (or you can
24       pass a variable name to import to decide what the variable should be)
25       with a category based on the name of the calling module.
26

MOTIVATION

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