Plack::Middleware::EnvTracer - The Plack middleware for tracing %ENV
use Plack::Builder; builder { enable 'EnvTracer'; $app; };
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.
If you use methods option, you can enable methods only which you want(fetch, store, exists, delete, clear, scalar, firstkey or nextkey).
methods
enable 'EnvTracer', methods => [qw/store delete/]; # just enable STORE and DELETE methods
And you can set the callback option.
callback
enable 'EnvTracer', callback => sub { my ($summary, $trace) = @_; warn "$summary\n$trace\n"; };
Plack::Middleware::EnvTracer is hosted on github <http://github.com/bayashi/Plack-Middleware-EnvTracer>
Welcome your patches and issues :D
Dai Okabayashi <bayashi@cpan.org>
Plack::Middleware::Debug::TraceENV
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
To install Plack::Middleware::EnvTracer, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::EnvTracer
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::EnvTracer
For more information on module installation, please visit the detailed CPAN module installation guide.