Quick Application Logger Code
//todo: check anonymous (elevated privileges?) public class Log { private const string LogSource = "mYsOURCE" ; public static void WriteEntry( Exception Event) { string sSource = LogSource; string sLog = "Application" ; SPSecurity .RunWithElevatedPrivileges(() => { if (! EventLog .SourceExists(sSource)) ...