GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  LOG::DISPATCH::FILEWRITEROTATE (3)

.ds Aq ’

NAME

Log::Dispatch::FileWriteRotate - Log to files that archive/rotate themselves, w/ File::Write::Rotate

CONTENTS

VERSION

This document describes version 0.04 of Log::Dispatch::FileWriteRotate (from Perl distribution Log-Dispatch-FileWriteRotate), released on 2016-01-19.

SYNOPSIS



 use Log::Dispatch::FileWriteRotate;

 my $file = Log::Dispatch::FileWriteRotate(
     min_level => info,

     # will be passed to File::Write::Rotate
     dir       => /var/log,
     prefix    => myapp,
     suffix    => .log,
     period    => monthly,
     size      => 25*1024*1024,
     histories => 12,
 );

 $file->log(level => info, message => "Your comment\n");



DESCRIPTION

This module functions similarly to Log::Dispatch::FileRotate, but uses File::Write::Rotate as backend, thus interoperates more easily with other modules which use File::Write::Rotate as backend, e.g. Tie::Handle::FileWriteRotate or Process::Govern.

METHODS

    new(%args)

Constructor. This method takes a hash of parameters. The following options are valid: min_level and max_level (see Log::Dispatch documentation); dir, prefix, suffix, period, size, and histories (see File::Write::Rotate).

    log_message(message => STR)

Send a message to the appropriate output. Generally this shouldn’t be called directly but should be called through the log() method (in LLog::Dispatch::Output>).

HOMEPAGE

Please visit the project’s homepage at <https://metacpan.org/release/Log-Dispatch-FileWriteRotate>.

SOURCE

Source repository is at <https://github.com/perlancar/perl-Log-Dispatch-FileWriteRotate>.

BUGS

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

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.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 LOG::DISPATCH::FILEWRITEROTATE (3) 2016-01-19

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.