コード例 #1
0
            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");
            }
コード例 #2
0
 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;
 }
コード例 #3
0
 public FileBuffer(ForwardOutputPlugin forwarder) : base(Path.Combine("LogBuffer", "Forward", forwarder.System),
                                                         4 * 1024, 4 * 256, 1024 * 16 * 4, 1000)
 {
     _forwarder = forwarder;
 }