Got your email. As I suspected, the log you're seeing in the event log is due to an exception which occured while logging. Check again the log in the Event Viewer, the message should be like "There is no explicit mapping for the categories
'Warning'....". This is because the line
LogEntry log = new LogEntry(exs.Message, "Warning", 1, 101, TraceEventType.Information, "Security Exception", null);
means that you want this log to be processed by the trace listener(s) under the "Warning" category and it is has a severity equal to TraceEventType.Information.
In your config, you didn't have a "Warning" category. You only have a "General" category. So the solution to this is change Warning to General or change the name of your General category to Warning.
Global Technology and Solution