Dancer2::Logger::File::RotateLogs - an automated logrotate.
# development.yml or production.yml logger: "File::RotateLogs" # options (It's possible to omit) engines: logger: File::RotateLogs: logfile: '/[absolute path]/logs/error.log.%Y%m%d%H' linkname: '/[absolute path]/logs/error.log' rotationtime: 86400 maxage: 86400 * 7
This module allows you to initialize File::RotateLogs within the application's configuration. File::RotateLogs is utility for file logger and very simple logfile rotation.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Masaaki Saito <email@example.com>