Plack::Middleware::LogWarn(3pm)

Plack::Middleware::LogWarn3pm

Converts to warns to log messages

Usage

 builder {
    enable 'LogWarn';
    $app;
 }
 # use it with another logger middleware
 builder {
    enable 'LogWarn';
    enable 'Log4perl', category => 'plack', conf => '/path/to/log4perl.conf';
    $app;
 }

Version

version 0.001002

Overview

LogWarn is a "Plack::Middleware" component that will help you get warnings into a logger. You probably want to use some sort of real logging system such as Log::Log4perl and another "Plack::Middleware" such as Plack::Middleware::Log4perl.

Configuration

logger

optional, "coderef" that will capture warnings. By default it uses "$env->{'psgix.logger'}" with a level of "warn".

Credits

Thanks to Micro Technology Services, Inc. for funding the initial development of this module and frew (Arthur Axel "fREW" Schmidt <[email protected]>) for his extensive patience and assistance.

Releases

5 releases since Debian 9 (Stretch); the text changed 3 times.

  1. 9–10
  2. 11
  3. 12
  4. 13

Author

Geoffrey Darling <[email protected]>

From libplack-middleware-logwarn-perl 0.001002-3 in Debian 13 (Trixie). Parsed by carta from the page's man source.