public void LogEvent(EventType eventType, EventParams eventParams) { if ((eventType & appConfigManager.Config.EventLogging) != eventType) { return; } try { EventLog.WriteEntry(SOURCE_NAME, eventParams.ToString(), EventLogEntryType.Information); } catch (Exception ex) { Log.ErrorException("Error writing to windows event log", ex); } }
public void LogEvent(EventType eventType, EventParams eventParams) { }