示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SumoLogicAppender"/> class.
 /// </summary>
 /// <param name="log">The log service.</param>
 /// <param name="httpMessageHandler">The HTTP message handler.</param>
 public SumoLogicAppender(SumoLogic.Logging.Common.Log.ILog log, HttpMessageHandler httpMessageHandler)
 {
     this.SourceName         = "Log4Net-SumoObject";
     this.ConnectionTimeout  = 60000;
     this.LogLog             = log ?? new DummyLog();
     this.HttpMessageHandler = httpMessageHandler;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BufferedSumoLogicAppender"/> class.
 /// </summary>
 /// <param name="log">The log service.</param>
 /// <param name="httpMessageHandler">The HTTP message handler.</param>
 public BufferedSumoLogicAppender(SumoLogic.Logging.Common.Log.ILog log, HttpMessageHandler httpMessageHandler)
 {
     this.SourceName         = "Log4Net-SumoObject";
     this.ConnectionTimeout  = 60000;
     this.RetryInterval      = 10000;
     this.MessagesPerRequest = 100;
     this.MaxFlushInterval   = 10000;
     this.FlushingAccuracy   = 250;
     this.MaxQueueSizeBytes  = 1000000;
     this.LogLog             = log ?? new DummyLog();
     this.HttpMessageHandler = httpMessageHandler;
 }