示例#1
0
文件: Logger.cs 项目: Jusharra/RMS
 /// <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
文件: AHandler.cs 项目: Jusharra/RMS
 /// <summary>
 /// Perform the actual logging of an event.
 /// </summary>
 /// <param name="oEvent"></param>
 public abstract void Log(LogEvent oEvent);