public StreamJournalWriter(IStore storage, EngineConfiguration config)
 {
     _config = config;
     _storage = storage;
     _journalFormatter = config.CreateFormatter(FormatterUsage.Journal);
     _rolloverStrategy = _config.CreateRolloverStrategy();
 }
 public StreamJournalWriter(EngineConfiguration config, Func <ulong, Stream> streamFactory)
 {
     _streamProvider   = streamFactory;
     _journalFormatter = config.CreateFormatter(FormatterUsage.Journal);
     _rolloverStrategy = config.CreateRolloverStrategy();
 }
 public StreamJournalWriter(EngineConfiguration config, Func<ulong,Stream> streamFactory)
 {
     _streamProvider = streamFactory;
     _journalFormatter = config.CreateFormatter(FormatterUsage.Journal);
     _rolloverStrategy = config.CreateRolloverStrategy();
 }
Exemple #4
0
 public void AddStrategy(RolloverStrategy strategy)
 {
     _childStrategies.Add(strategy);
 }
Exemple #5
0
 public void AddStrategy(RolloverStrategy strategy)
 {
     _childStrategies.Add(strategy);
 }