How to Debug Logging Problems
The logging framework doesn't throw exceptions itself--you wouldn't want to have to put try/catch blocks around all your logging code. So, errors that occur during the logging process are silent. However, if you want to be notified of an exception that occurs during logging, you can subscribe to the
LoggingError event in the Logger class.
One common problem some people run into is a file permissions issue. If your application doesn't have write permission in the folder where the log file is supposed to be, nothing will be written.