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.
- What logging modules have people used?
- Would you use them/it again?
- If you found that the CPAN modules weren't ideal, and you wrote your own, what did you put in your log: what format did you use?
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.