BusinessLogic.SqlMembershipProvider.WriteToEventLog C# (CSharp) Метод

WriteToEventLog() приватный Метод

private WriteToEventLog ( Exception e, string action ) : void
e System.Exception
action string
Результат void
        private void WriteToEventLog(Exception e, string action)
        {
            EventLog log = new EventLog();
            log.Source = eventSource;
            log.Log = eventLog;

            string message = "An exception occurred communicating with the data source.\n\n";
            message += "Action: " + action + "\n\n";
            message += "Exception: " + e.ToString();

            log.WriteEntry(message);
        }