Plack::Middleware::AccessLog::RotateLogs - AccessLog with File::RotateLogs
use Plack::Builder;
builder {
enable 'AccessLog::RotateLogs',
format => 'combined',
logfile => '/path/to/access_log.%Y%m%d',
maxage => 86400;
$app;
;}
Plack::Middleware::AccessLog::RotateLogs is a subclass of Plack::Middleware::AccessLog with File::RotateLogs.
For Plack::Middleware::AccessLog:
format
For File::RotateLogs:
logfile, linkname, rotationtime, maxage, sleep_before_remove, offset
Note that if the offset is omitted, it is set to appropriate value for current timezone. In addtion, the maxage defaults to 60 * 60 * 24 * 30.
Copyright (C) Shoichi Kaji.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Shoichi Kaji skaji@outlook.com