Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Log::Dispatch::FileRotate ?

by gmargo (Hermit)
on Nov 25, 2009 at 17:12 UTC ( #809367=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Log::Dispatch::FileRotate ?
in thread Log::Dispatch::FileRotate ?

The documentation is unclear, but if you look at the source, it is very clear that the size is in bytes. The size parameter defaults to 10MB, so try the default.

Here is the relevant section of code from the Log::Dispatch::FileRotate module's constructor:

# Size defaults to 10meg in all failure modes, hopefully my $ten_meg = 1024*1024*10; my $two_gig = 1024*1024*1024*2; my $size = $ten_meg; $size = $p{size} if defined $p{size}; $size = $ten_meg unless $size =~ /^\d+$/ && $size < $two_gig && $s +ize > 0; $self->{size} = $size;


Comment on Re^3: Log::Dispatch::FileRotate ?
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://809367]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2014-09-20 12:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (159 votes), past polls