=pod
=head1 NAME
Mojolicious::Plugin::ParamLogger - Log request parameters
=for html
=head1 SYNOPSIS
# Mojolicious
$self->plugin('ParamLogger', %options)
# Mojolicious::Lite
plugin 'ParamLogger', %options;
=head1 DESCRIPTION
This module automatically logs request parameters while in development mode.
See L for details.
C doesn't log request parameters. Of course -depending on your setup-
they may be logged elsewhere but, when in development, I use C and C
doesn't log them (same goes for C).
=head1 OPTIONS
=head2 C
$self->plugin('ParamLogger', filter => 'authtoken')
$self->plugin('ParamLogger', filter => [ qw{nome senha} ])
Parmeter values to exclude from the log. Defaults to C<'password'>.
=head2 C
$self->plugin('ParamLogger', level => 'info')
Log the request parameters at the given log level. Defaults to C<'info'> in production, C<'debug'> everywhere else.
See L for a list of log levels.
=head2 C
$self->plugin('ParamLogger', production => 1)
Turn on parameter logging for the given mode. By default parameters will only be logged when in development mode.
=head1 SEE ALSO
L, L
=head1 LICENSE
Copyright (c) 2012 Skye Shaw.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
=cut