Catalyst::Plugin::File::RotateLogs - Catalyst Plugin for File::RotateLogs
# plugin is loaded use Catalyst qw/ ConfigLoader Static::Simple File::RotateLogs /; $c->log->info("hello catalyst");
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. I wanted easier catalyst log rotation.
# Catalyst configuration file (e. g. in YAML format): File::RotateLogs: logfile: '/[absolute path]/root/error.log.%Y%m%d%H' linkname: '/[absolute path]/root/error.log' rotationtime: 86400 maxage: 86400 * 3 autodump: 0 color: 0
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
masakyst <masakyst.public@gmail.com>
To install Catalyst::Plugin::File::RotateLogs, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::File::RotateLogs
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::File::RotateLogs
For more information on module installation, please visit the detailed CPAN module installation guide.