Michael Alan Dorman > Plack-Middleware-LogAny > Plack::Middleware::LogAny

Download:
Plack-Middleware-LogAny-0.001.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.001   Source  

NAME ^

Plack::Middleware::LogAny - Use Log::Any to handle logging from your Plack app

VERSION ^

version 0.001

SYNOPSIS ^

  builder {
      enable "LogAny", category => "plack";
      $app;
  }

DESCRIPTION ^

LogAny is a Plack::Middleware component that allows you to use Log::Any to handle the logging object, psgix.logger.

It really tries to be the thinnest possible shim, so it doesn't handle any configuration beyond setting the category to which messages from plack might be logged.

METHODS ^

prepare_app

This method initializes the logger using the category that you (optionally) set.

call

Actually handles making sure the logger is invoked.

CONFIGURATION ^

category

The Log::Any category to send logs to. Defaults to '' which means it send to the root logger.

SEE ALSO ^

Log::Any

AUTHOR ^

Michael Alan Dorman <mdorman@ironicdesign.com>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 by Michael Alan Dorman.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: