NAME

Log::Any::Adapter::FileWriteRotate - Send logs to File::Write::Rotate

VERSION

This document describes version 0.001 of Log::Any::Adapter::FileWriteRotate (from Perl distribution Log-Any-Adapter-FileWriteRotate), released on 2016-10-02.

SYNOPSIS

use Log::Any::Adapter;
Log::Any::Adapter->set('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 Log::Any adapter prints log messages to file through File::Write::Rotate.

HOMEPAGE

Please visit the project's homepage at https://metacpan.org/release/Log-Any-Adapter-FileWriteRotate.

SOURCE

Source repository is at https://github.com/perlancar/perl-Log-Any-Adapter-FileWriteRotate.

BUGS

Please report any bugs or feature requests on the bugtracker website https://rt.cpan.org/Public/Dist/Display.html?Name=Log-Any-Adapter-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::Any

File::Write::Rotate

AUTHOR

perlancar <perlancar@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 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.