Please be gentle to a C# newbie in Visual Studio.
I have been handed a Windows Forms application using .Net 4.6 and has 3 namespaces, two of which are dll Class Libraries.
I have looked at NLog and gone some way down the path with tutorials and examples. However it seems easy to output handled exceptions to a log file but struggling to output unhandled exceptions.
I've only touched Log4Net but this looks the same. All the example tutorials have a single namespace and no examples of where unhandled exceptions are recorded.
Is there a way I can output unhandled exceptions to a log file, not just in the executable but also from code in the dlls?
I have been handed a Windows Forms application using .Net 4.6 and has 3 namespaces, two of which are dll Class Libraries.
I have looked at NLog and gone some way down the path with tutorials and examples. However it seems easy to output handled exceptions to a log file but struggling to output unhandled exceptions.
I've only touched Log4Net but this looks the same. All the example tutorials have a single namespace and no examples of where unhandled exceptions are recorded.
Is there a way I can output unhandled exceptions to a log file, not just in the executable but also from code in the dlls?