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

Which rolling log file module do you recommend?

by bulrush (Scribe)
on Aug 01, 2014 at 12:53 UTC ( [id://1095898]=perlquestion: print w/replies, xml ) Need Help??

bulrush has asked for the wisdom of the Perl Monks concerning the following question:

Which rolling log module do you suggest?

I found Log::Rolling, the CPAN page said it was at version 1.02, but when I installed it via cpanm, it said I installed v1.00.

Problem: I have a Perl program that runs continuously and checks email every 30 minutes. At the beginning of a program it opens a log file, and writes entries as the program is run, so I can capture any errors before the program is stopped or crashes. The program can only be stopped by Control-C at the terminal it is running on. Or via an email command sent to it.

I want to limit the size of this log file to about 1000 lines. I don't need anything complex. Simple will do.

Thank you.


After downloading the 1.02 tar.gz file, and installing it, it seems only the internal documentation of the module is wrong. As the .tar.gz file also reported it was installing v1.00.

Perl 5.8.8 on Redhat Linux RHEL 5.5.56 (64-bit)
  • Comment on Which rolling log file module do you recommend?

Replies are listed 'Best First'.
Re: Which rolling log file module do you recommend?
by McA (Priest) on Aug 01, 2014 at 13:15 UTC
Re: Which rolling log file module do you recommend?
by McA (Priest) on Aug 01, 2014 at 13:24 UTC

    An answer depends on the fact whether and/or how much you want to change you perl script and how easy you can change it without risking functionality.

    How is logging done in your script? print statements? Some kind of call to a log-function?

    You should give some more context.

    Regards
    McA

Log In?
Username:
Password:

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

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

    No recent polls found