/// <summary> /// Write the message to the logger. /// </summary> /// <param name="lg"></param> /// <param name="eventType">Specifies the level of the error</param> /// <param name="message">message</param> public static void Send(this log4net.ILog lg, TraceEventType eventType, string message) { Action <string, Exception> method = lg.GetLogMethod(eventType); method(message, null); }