public ForwardWorker(ForwardOutputPlugin forwarder, string server) { _forwarder = forwarder; _server = server; var normalizedServer = server.TrimEnd('/'); _saveUri = new Uri(normalizedServer + $"/Log/Save/{forwarder.System}"); _getPendingUri = new Uri(normalizedServer + "/Log/Metrics"); }
public FileBuffer(ForwardOutputPlugin forwarder, BufferSettingsConfig settingsConfig = null, ILoggerFactory loggerFactory = null) : base(Path.Combine(settingsConfig?.BufferPath ?? "LogBuffer", forwarder.System), settingsConfig?.ReadLimit ?? 4 * 1024, settingsConfig?.MemoryBufferLimit, settingsConfig?.FileBufferLimit, settingsConfig?.FlushTimeout, settingsConfig?.ResendTimeout, settingsConfig?.ResendIntervals, settingsConfig?.WorkerCount ?? 1, settingsConfig?.Encoding, loggerFactory) { _forwarder = forwarder; }
public FileBuffer(ForwardOutputPlugin forwarder) : base(Path.Combine("LogBuffer", "Forward", forwarder.System), 4 * 1024, 4 * 256, 1024 * 16 * 4, 1000) { _forwarder = forwarder; }