Plack::Middleware::LogFilter - modify log output.
use Plack::Builder; builder { enable 'LogFilter', filter => sub { my ($env, $output) = @_; # ignore static file log if ($output =~ /\/static\/(js|css|images)/) { return 0; } return 1; }; $app };
This middleware allows the modification of log output.
Copyright (C) Uchiko.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Uchiko <memememomo@gmail.com>
To install Plack::Middleware::LogFilter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plack::Middleware::LogFilter
CPAN shell
perl -MCPAN -e shell install Plack::Middleware::LogFilter
For more information on module installation, please visit the detailed CPAN module installation guide.