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

            FileLoggerConfiguration = configuration.Clone();

            DoubleBufferTask.OnInitialized();

            IsInitialized = true;
        }
Ejemplo n.º 3
0
 public FileLogger(FileLoggerConfiguration configuration) : this()
 {
     SetConfiguration(configuration);
 }