A base class to implement a log listener
Inheritance: IDisposable
Esempio n. 1
0
 /// <summary>
 /// Removes Log listener.
 /// </summary>
 /// <param name="listener"></param>
 public static void RemoveListener(LogListener listener)
 {
     lock (lockObj) {
         listeners.Remove(listener);
         listener.Flush();
     }
 }
Esempio n. 2
0
		/// <summary>
		/// Removes Log listener.
		/// </summary>
		/// <param name="listener"></param>
		public static void RemoveListener ( LogListener listener )
		{
			lock (lockObj) {
				listeners.Remove( listener );
				listener.Flush();
			}
		}
Esempio n. 3
0
 /// <summary>
 /// Adds Log listener.
 /// </summary>
 /// <param name="listener"></param>
 public static void AddListener(LogListener listener)
 {
     lock (lockObj) {
         listeners.Add(listener);
     }
 }
Esempio n. 4
0
		/// <summary>
		/// Adds Log listener.
		/// </summary>
		/// <param name="listener"></param>
		public static void AddListener ( LogListener listener )
		{
			lock (lockObj) {
				listeners.Add( listener );
			}
		}