NAME
Log::ger::Output::FileWriteRotate - Log to File::Write::Rotate
VERSION
This document describes version 0.005 of Log::ger::Output::FileWriteRotate (from Perl distribution Log-ger-Output-FileWriteRotate), released on 2020-03-11.
SYNOPSIS
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
);
DESCRIPTION
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.
CONFIGURATION
These configuration parameters are FWR's. See that module's documentation for more details.
dir
prefix
suffix
size
histories
buffer_size
HOMEPAGE
Please visit the project's homepage at https://metacpan.org/release/Log-ger-Output-FileWriteRotate.
SOURCE
Source repository is at https://github.com/perlancar/perl-Log-ger-Output-FileWriteRotate.
BUGS
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.
SEE ALSO
Log::ger::Output::DirWriteRotate
AUTHOR
perlancar <perlancar@cpan.org>
COPYRIGHT AND LICENSE
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.