public FileLoggerWriteFailedArgs(FileLogger fileLogger, FileLoggerConfiguration fileLoggerConfiguration, IReadOnlyList <string> logList) { FileLoggerConfiguration = fileLoggerConfiguration; FileLogger = fileLogger; LogList = logList; }
public void SetConfiguration(FileLoggerConfiguration configuration) { if (FileLoggerConfiguration != null) { throw new InvalidOperationException($"重复多次设置日志文件"); } FileLoggerConfiguration = configuration.Clone(); DoubleBufferTask.OnInitialized(); IsInitialized = true; }
public FileLogger(FileLoggerConfiguration configuration) : this() { SetConfiguration(configuration); }