|Do you know where your variables are?|
fast logging showing calling position..by kosun (Acolyte)
|on Sep 01, 2005 at 17:34 UTC||Need Help??|
kosun has asked for the
wisdom of the Perl Monks concerning the following question:
I'm want some very simple logging that given something like
prints the equivalent of doing this on the same line
i.e. It prints the line number where the function was called, not the line number from inside the log_error subrountine.
Stuck on how to do this
1. Printing the line number where the log_error was called without including it in the argument
2. I'd like anything < THRESHOLD for the current run to be removed at compile time if possible to avoid a performance hit...not sure if can really do that...or if it makes a difference.
This application has to be very fast I don't need much and prefer to not use any log modules if I don't need to.
Any help appreciated thanks so much!