Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sshaw/mojolicious-plugin-paramlogger
Log request parameters
https://github.com/sshaw/mojolicious-plugin-paramlogger
logging mojolicious parameters perl urls
Last synced: 21 days ago
JSON representation
Log request parameters
- Host: GitHub
- URL: https://github.com/sshaw/mojolicious-plugin-paramlogger
- Owner: sshaw
- Created: 2012-09-09T23:11:54.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2020-01-09T00:20:17.000Z (about 5 years ago)
- Last Synced: 2024-10-31T16:23:53.500Z (2 months ago)
- Topics: logging, mojolicious, parameters, perl, urls
- Language: Perl
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.pod
- Changelog: Changes
Awesome Lists containing this project
README
=pod
=head1 NAME
Mojolicious::Plugin::ParamLogger - Log request parameters
=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