public FileLoggerWriteFailedArgs(FileLogger fileLogger, FileLoggerConfiguration fileLoggerConfiguration,
                                  IReadOnlyList <string> logList)
 {
     FileLoggerConfiguration = fileLoggerConfiguration;
     FileLogger = fileLogger;
     LogList    = logList;
 }
示例#2
0
        public void SetConfiguration(FileLoggerConfiguration configuration)
        {
            if (FileLoggerConfiguration != null)
            {
                throw new InvalidOperationException($"重复多次设置日志文件");
            }

            FileLoggerConfiguration = configuration.Clone();

            DoubleBufferTask.OnInitialized();

            IsInitialized = true;
        }
示例#3
0
 public FileLogger(FileLoggerConfiguration configuration) : this()
 {
     SetConfiguration(configuration);
 }