Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2015-07-04 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (60 votes), past polls