Пример #1
0
 /// <summary>
 /// Writes an event to the log using the event object data.
 /// </summary>
 /// <param name="oEvent">Event object</param>
 public static void Write(LogEvent oEvent)
 {
     if (Instance!=null && Instance.m_qEvents != null)
     {
         lock (Instance.m_qEvents.SyncRoot)
         {
             Instance.m_qEvents.Enqueue(oEvent);
         }
     }
 }
Пример #2
0
 /// <summary>
 /// Perform the actual logging of an event.
 /// </summary>
 /// <param name="oEvent"></param>
 public abstract void Log(LogEvent oEvent);