I’ve knocked up a simple project that demonstrates a few things, namely: Avoiding file locking issues when writing to a logfile using recursion Dealing with Unhandled Exceptions globally Writing this data to a local log file The source code is below, feel free to download and use as you wish. If you make any improvements, More >