/// <summary> /// 初始化 /// </summary> /// <param name="record"> </param> public static void Initialize(ILogRecorder record) { if (record == null) { return; } Recorder = record; IsTextRecorder = false; Recorder.Initialize(); }
/// <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; }
/// <summary> /// 初始化 /// </summary> /// <param name="record"> </param> public static void Initialize(ILogRecorder record) { Recorder = record ?? new TxtRecorder(); IsTextRecorder = record == null || record is TxtRecorder; Recorder.Initialize(); }