Log::ger::Output::FileWriteRotate - Log to File::Write::Rotate
This document describes version 0.005 of Log::ger::Output::FileWriteRotate (from Perl distribution Log-ger-Output-FileWriteRotate), released on 2020-03-11.
use Log::ger::Output FileWriteRotate => ( dir => '/var/log', # required prefix => 'myapp', # required #suffix => '.log', # default is '' size => 25*1024*1024, # default is 10MB, unless period is set histories => 12, # default is 10 #buffer_size => 100, # default is none );
This plugin sends logs to File::Write::Rotate (FWR) object. FWR allows autorotation when logging, meaning you don't need an additional external process to perform log rotation but FWR can perform the rotation itself.
These configuration parameters are FWR's. See that module's documentation for more details.
Please visit the project's homepage at https://metacpan.org/release/Log-ger-Output-FileWriteRotate.
Source repository is at https://github.com/perlancar/perl-Log-ger-Output-FileWriteRotate.
Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Log-ger-Output-FileWriteRotate
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
Log::ger
File::Write::Rotate
Log::ger::Output::SimpleFile
Log::ger::Output::File
Log::ger::Output::DirWriteRotate
perlancar <perlancar@cpan.org>
This software is copyright (c) 2020, 2019, 2017 by perlancar@cpan.org.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Log::ger::Output::FileWriteRotate, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Log::ger::Output::FileWriteRotate
CPAN shell
perl -MCPAN -e shell install Log::ger::Output::FileWriteRotate
For more information on module installation, please visit the detailed CPAN module installation guide.