Beispiel #1
0
 private void Init()
 {
     if (this._config != null && this._config.EnableOutputCache)
     {
         this._logWriteQueue = new LogAsynQueue <LogItem>(this.PrimitiveWriteLog, string.Format("{0}日志输出线程", this._config.AppenderName));
     }
 }
Beispiel #2
0
 private Loger(bool thread)
     : base()
 {
     this._thread = thread;
     if (thread)
     {
         this._logDispatcherQueue = new LogAsynQueue <LogItem>(this.RecordLogCallback, "日志分发线程");
     }
     else
     {
         this._lock = new object();
     }
 }