C# Class Seq.SeqLog

Extension methods for configuring the Seq (http://getseq.net) log event sink.
Afficher le fichier Open project: DimensionDataCBUSydney/seq-client

Méthodes publiques

Méthode Description
CreateListener ( string serverUrl, string apiKey = null, System.TimeSpan bufferingInterval = null, System.TimeSpan listenerDisposeTimeout = null, int bufferingCount = Buffering.DefaultBufferingCount, int maxBufferSize = Buffering.DefaultMaxBufferSize ) : System.Diagnostics.Tracing.EventListener

Creates an event listener that logs using a SeqSink.

LogToSeq ( this eventStream, string serverUrl, string apiKey = null, System.TimeSpan bufferingInterval = null, System.TimeSpan onCompletedTimeout = null, int bufferingCount = Buffering.DefaultBufferingCount, int maxBufferSize = Buffering.DefaultMaxBufferSize ) : SinkSubscription

Subscribes to an IObservable{EventEntry} using a SeqSink.

Method Details

CreateListener() public static méthode

Creates an event listener that logs using a SeqSink.
public static CreateListener ( string serverUrl, string apiKey = null, System.TimeSpan bufferingInterval = null, System.TimeSpan listenerDisposeTimeout = null, int bufferingCount = Buffering.DefaultBufferingCount, int maxBufferSize = Buffering.DefaultMaxBufferSize ) : System.Diagnostics.Tracing.EventListener
serverUrl string The base URL of the Seq server that log events will be written to.
apiKey string A Seq API key that authenticates the client to the Seq server.
bufferingInterval System.TimeSpan The buffering interval between each batch publishing. Default value is .
listenerDisposeTimeout System.TimeSpan Time limit for flushing the entries after an call is received and before disposing the sink.
bufferingCount int Number of entries that will trigger batch publishing. Default is
maxBufferSize int The maximum number of entries that can be buffered before the sink starts dropping entries. /// This means that if the timeout period elapses, some event entries will be dropped and not sent to the store. Normally, calling on /// the will block until all the entries are flushed or the interval elapses. /// If is specified, then the call will block indefinitely until the flush operation finishes.
Résultat System.Diagnostics.Tracing.EventListener

LogToSeq() public static méthode

Subscribes to an IObservable{EventEntry} using a SeqSink.
public static LogToSeq ( this eventStream, string serverUrl, string apiKey = null, System.TimeSpan bufferingInterval = null, System.TimeSpan onCompletedTimeout = null, int bufferingCount = Buffering.DefaultBufferingCount, int maxBufferSize = Buffering.DefaultMaxBufferSize ) : SinkSubscription
eventStream this The event stream. Typically this is an instance of .
serverUrl string The base URL of the Seq server that log events will be written to.
apiKey string A Seq API key that authenticates the client to the Seq server.
bufferingInterval System.TimeSpan The buffering interval between each batch publishing. Default value is .
onCompletedTimeout System.TimeSpan Time limit for flushing the entries after an call is received.
bufferingCount int Number of entries that will trigger batch publishing. Default is
maxBufferSize int The maximum number of entries that can be buffered before the sink starts dropping entries. /// This means that if the timeout period elapses, some event entries will be dropped and not sent to the store. Normally, calling on /// the will block until all the entries are flushed or the interval elapses. /// If is specified, then the call will block indefinitely until the flush operation finishes.
Résultat SinkSubscription