ajt has asked for the wisdom of the Perl Monks concerning the following question:
Like many diligent programmers, I like to log what is going on, so when things go wrong I can try and debug the problem. Alas I seem to end up cutting and pasting a simple log routine from program to program, and I end up with log files scattered all over the place. I work on both NT and Linux, so I can't easily write code that logs to the various system logs as this reduces portability.
Most of my applications are CGI, and during debugging I like to have lots of activity logged, and then reduce this to just enough for production. At the moment, I have long multi-line enteries that are easy to read by eye rather than machine. However in production I think a more machine readable format will be in order.
I didn't find anything here with super search, but CPAN is full of modules! It's hard to decided where to begin, there are so many. Plus there is the added noise of the zillions of Apache log parsing modules!
Many humble thanks in advance.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to write to log files?
by miyagawa (Chaplain) on Nov 20, 2001 at 16:05 UTC | |
|
Re: How to write to log files?
by jepri (Parson) on Nov 20, 2001 at 18:30 UTC | |
by RhetTbull (Curate) on Nov 20, 2001 at 18:46 UTC | |
|
Re: How to write to log files?
by drifter (Scribe) on Nov 20, 2001 at 20:01 UTC | |
|
Re: How to write to log files?
by dug (Chaplain) on Nov 20, 2001 at 21:01 UTC | |
|
Re: How to write to log files?
by jlongino (Parson) on Nov 20, 2001 at 23:13 UTC | |
|
Re: How to write to log files?
by fuzzysteve (Beadle) on Nov 21, 2001 at 05:56 UTC | |
|
Re: How to write to log files?
by tstock (Curate) on Nov 21, 2001 at 01:31 UTC |