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

            FileLoggerConfiguration = configuration.Clone();

            DoubleBufferTask.OnInitialized();

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