Hello,
I would like to know if there is a way pipe all exceptions and bugs in my program directly in a log file.
I already have a function to write in a log, but if an exception or bug occurs in a part of my program I didn't expected, the end user will see it, while I would like to hide it and keep it in a separate file which will be sent to the network administrator.
Hello,
I would like to know if there is a way pipe all exceptions and bugs in my program directly in a log file.
I already have a function to write in a log, but if an exception or bug occurs in a part of my program I didn’t expected, the end user will see it, while I would like to hide it and keep it in a separate file which will be sent to the network administrator.
Any idea ?
If you want to be able to catch all unhandled exceptions you can do some thing like the following.
Define an ExceptionHook method with the follwing argurments