C# Class Serilog.ELKBulkSink.ELKSink

Inheritance: Serilog.Sinks.PeriodicBatching.PeriodicBatchingSink
显示文件 Open project: skbkontur/serilog.ELKBulkSink

Public Methods

Method Description
ChunkEvents ( IEnumerable events ) : IEnumerable
ELKSink ( SinkOptions options, bool includeDiagnostics = false ) : System
EventToJson ( LogEvent logEvent ) : string
PackageContent ( List jsons, int bytes, int page, bool includeDiagnostics = false ) : StringContent

Protected Methods

Method Description
EmitBatchAsync ( IEnumerable events ) : System.Threading.Tasks.Task

Private Methods

Method Description
CreateWebRequest ( ) : HttpWebRequest
GetMurmur3HashString ( string value ) : string

Method Details

ChunkEvents() public method

public ChunkEvents ( IEnumerable events ) : IEnumerable
events IEnumerable
return IEnumerable

ELKSink() public method

public ELKSink ( SinkOptions options, bool includeDiagnostics = false ) : System
options SinkOptions
includeDiagnostics bool
return System

EmitBatchAsync() protected method

protected EmitBatchAsync ( IEnumerable events ) : System.Threading.Tasks.Task
events IEnumerable
return System.Threading.Tasks.Task

EventToJson() public static method

public static EventToJson ( LogEvent logEvent ) : string
logEvent Serilog.Events.LogEvent
return string

PackageContent() public static method

public static PackageContent ( List jsons, int bytes, int page, bool includeDiagnostics = false ) : StringContent
jsons List
bytes int
page int
includeDiagnostics bool
return StringContent