Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re^2: Log::Dispatch::FileRotate ?

by vinoth.ree (Prior)
on Nov 25, 2009 at 08:30 UTC ( #809291=note: print w/ replies, xml ) Need Help??

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

use Log::Dispatch::FileRotate; my $file = Log::Dispatch::FileRotate->new( name => 'file1', min_level => 'info', filename => 'ree.log', mode => 'append', size => 10, max => 5, ); $file->log( level => 'info', message => "Module Testing\n");

Sample Code using Log::Dispatch::FileRotate module, its print the message into the file not appending its writing the same message in 6 files namely ree.log, ree.log.1,ree.log.2,ree.log.3,ree.log.4,ree.log.5

Comment on Re^2: Log::Dispatch::FileRotate ?
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2015-11-26 10:20 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (697 votes), past polls