Beispiel #1
0
        public YamlLoggerProvider(YamlLoggerOptions options)
        {
            UsedOptions = options;

            _logging = new AsyncLogging(new YamlLogWriter(options), options.WriteInterval, options.DisposeWaitingInterval);
            _logging.Start();
        }
Beispiel #2
0
 public YamlLoggerProviderSync(YamlLoggerOptions options)
 {
     UsedOptions = options;
 }
Beispiel #3
0
 public LogFileProvider(YamlLoggerOptions options, IFsTools fsTools)
 {
     _options = options;
     _fsTools = fsTools;
 }
Beispiel #4
0
 public YamlLogWriter(YamlLoggerOptions options)
     : this(options, new DefaultYamlLogWriterOpenFileStrategy())
 {
 }
Beispiel #5
0
 public YamlLogWriter(YamlLoggerOptions options, IYamlLogWriterOpenFileStrategy openFileStrategy)
 {
     _options          = options ?? throw new ArgumentNullException(nameof(options));
     _openFileStrategy = openFileStrategy ?? throw new ArgumentNullException(nameof(openFileStrategy));
 }