Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

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

by vinoth.ree (Monsignor)
on Nov 25, 2009 at 08:30 UTC ( [id://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

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (2)
As of 2024-04-20 03:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found