Пример #1
0
 /// <summary>
 ///   初始化
 /// </summary>
 /// <param name="record"> </param>
 public static void Initialize(ILogRecorder record)
 {
     if (record == null)
     {
         return;
     }
     Recorder       = record;
     IsTextRecorder = false;
     Recorder.Initialize();
 }
Пример #2
0
 /// <summary>
 ///   初始化
 /// </summary>
 /// <param name="record"> </param>
 public static void Initialize(ILogRecorder record)
 {
     if (record != null)
     {
         Recorder        = record;
         _isTextRecorder = record is TxtRecorder;
         Recorder.Initialize();
     }
     State = LogRecorderStatus.Initialized;
 }
Пример #3
0
 /// <summary>
 ///   初始化
 /// </summary>
 /// <param name="record"> </param>
 public static void Initialize(ILogRecorder record)
 {
     Recorder       = record ?? new TxtRecorder();
     IsTextRecorder = record == null || record is TxtRecorder;
     Recorder.Initialize();
 }