Syntactic Confectionery Delight | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
I don't know of any "one size fits all" advice for logging. I totally agree. In fact, I find that "one size" doesn't even work for my own challenges. Thanks for the ideas...especially about use constants. I haven't had any reall performance problems with the logging, but I had wondered if there might be a way to handle at least some of the challenge if, in the future, I experienced a performance problem. As I noted in my Update to my original post, I tend to use logging mostly for its flexibility in capturing script progress and capturing script results. I, like you, tend to use print statements for my debugging. At the moment I attribute my preference for prints vs. logging to the reality that I'm still new to the logging capabilities that Log4perl offers. I have presumed that with more experience and understanding I would tend to migrate to using logging for debugging, too. However, I've never had any real problem with using prints for debugging so I haven't really had any strong incentive or desire to migrate away from that strategy. I am, however, experimenting with using logging and have found that it has some interesting and useful contributions to make to my debugging. So, for me, the vote is still out on using logging for debugging. Thanks so much for your reply. I really appreciate it.
ack
Albuquerque, NM
In reply to Re^2: Balancing Logging and Code Readability
by ack
|
|