Debian Codegraph @

README

raw
1 NAME
2 Plack::Middleware::LogWarn - converts to warns to log messages
3
4 VERSION
5 version 0.001002
6
7 SYNOPSIS
8 builder {
9 enable 'LogWarn';
10 $app;
11 }
12
13 # use it with another logger middleware
14
15 builder {
16 enable 'LogWarn';
17 enable 'Log4perl', category => 'plack', conf => '/path/to/log4perl.conf';
18 $app;
19 }
20
21 DESCRIPTION
22 LogWarn is a "Plack::Middleware" component that will help you get
23 warnings into a logger. You probably want to use some sort of real
24 logging system such as Log::Log4perl and another "Plack::Middleware"
25 such as Plack::Middleware::Log4perl.
26
27 CONFIGURATION
28 logger
29 optional, "coderef" that will capture warnings. By default it uses
30 "$env->{'psgix.logger'}" with a level of "warn".
31
32 SEE ALSO
33 Plack::Middleware::Log4perl
34
35 CREDITS
36 Thanks to Micro Technology Services, Inc. for funding the initial
37 development of this module and frew (Arthur Axel "fREW" Schmidt
38 <[email protected]>) for his extensive patience and assistance.
39
40 AUTHOR
41 Geoffrey Darling <[email protected]>
42
43 COPYRIGHT AND LICENSE
44 This software is copyright (c) 2011 by Geoffrey Darling.
45
46 This is free software; you can redistribute it and/or modify it under
47 the same terms as the Perl 5 programming language system itself.
48