NAME
Plack::Middleware::EnvTracer - The Plack middleware for tracing %ENV
SYNOPSIS
use Plack::Builder;
builder {
enable 'EnvTracer';
$app;
};
DESCRIPTION
Plack::Middleware::EnvTracer is the Plack middleware for tracing %ENV. If you enable this module, you can see the traced log of %ENV in STDOUT as default.
OPTIONS
If you use methods
option, you can enable methods only which you want(fetch, store, exists, delete, clear, scalar, firstkey or nextkey).
enable 'EnvTracer',
methods => [qw/store delete/]; # just enable STORE and DELETE methods
And you can set the callback
option.
enable 'EnvTracer',
callback => sub {
my ($summary, $trace) = @_;
warn "$summary\n$trace\n";
};
METHODS
- prepare_app
- call
REPOSITORY
Plack::Middleware::EnvTracer is hosted on github http://github.com/bayashi/Plack-Middleware-EnvTracer
Welcome your patches and issues :D
AUTHOR
Dai Okabayashi <bayashi@cpan.org>
SEE ALSO
Plack::Middleware::Debug::TraceENV
LICENSE
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.