Logging: Write some Exceptions to application log before throwing them. Disable file logging while in release mode.