I wrote an ErrorLog class, based on ideas from Kevin McNeish's book. It allows for logging of errors, exceptions and straight messages to an XML log.
I can send a flag to optionally include Exception.StackTrace which I normally turn off as it is too verbose.
One thing I'm looking for, if it exists is the equivalent of VFP's
LineNo()
and
Program()
to add to the message I create. These I'd need for a straight message, not based on an Exception class.
Is here such an animal in .Net (C#)?