|
NAMEHTTP::Engine::Middleware::AccessLog - write access log SYNOPSIS my $mw = HTTP::Engine::Middleware->new;
$mw->install( 'HTTP::Engine::Middleware::AccessLog' => {
logger => sub {
warn @_; # your own callback routine
},
format => '%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i"',
});
HTTP::Engine->new(
interface => {
module => 'YourFavoriteInterfaceHere',
request_handler => $mw->handler( \&handler ),
}
)->run();
DESCRIPTIONThis middleware prints access log like apache. This module's log format string is a subset of Apache. If you want to use more syntax, patches welcome :) BUG%r should contains query string. AUTHORTokuhiro Matsuno SEE ALSOHTTP::Engine::Middleware <http://httpd.apache.org/docs/2.0/en/mod/mod_log_config.html>
|