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 (Parson)
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 making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2014-08-23 01:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (171 votes), past polls