J
John Bowman
Hi All,
For debugging purposes I'm trying to figure out how to make any and all
Exceptions (Exceptions or AppExceptions or custom exceptions) be
automatically logged to a text logging file. Is this possible? I've figured
out how to inherit my own AppException that basically incorporates the
TextWriterTraceListener class. This allows custom AppExceptions that I might
explicitly throw to be automatically logged. But how can I get the same type
of behavior for any other exception types that are thrown, which I do not
explicitly throw? If I'm going about this all wrong, please point me in the
right direction. Any example code would also be very helpful.
TIA,
For debugging purposes I'm trying to figure out how to make any and all
Exceptions (Exceptions or AppExceptions or custom exceptions) be
automatically logged to a text logging file. Is this possible? I've figured
out how to inherit my own AppException that basically incorporates the
TextWriterTraceListener class. This allows custom AppExceptions that I might
explicitly throw to be automatically logged. But how can I get the same type
of behavior for any other exception types that are thrown, which I do not
explicitly throw? If I'm going about this all wrong, please point me in the
right direction. Any example code would also be very helpful.
TIA,