Exemplo n.º 1
0
        public YamlLoggerProvider(YamlLoggerOptions options)
        {
            UsedOptions = options;

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