C# 클래스 Serilog.Core.Enrichers.PropertyEnricher

Adds a new property encricher to the log event.
상속: ILogEventEnricher
파일 보기 프로젝트 열기: serilog/serilog

공개 메소드들

메소드 설명
Enrich ( LogEvent logEvent, ILogEventPropertyFactory propertyFactory ) : void

Enrich the log event.

PropertyEnricher ( string name, object value, bool destructureObjects = false ) : System

Create a new property enricher.

메소드 상세

Enrich() 공개 메소드

Enrich the log event.
public Enrich ( LogEvent logEvent, ILogEventPropertyFactory propertyFactory ) : void
logEvent Serilog.Events.LogEvent The log event to enrich.
propertyFactory ILogEventPropertyFactory Factory for creating new properties to add to the event.
리턴 void

PropertyEnricher() 공개 메소드

Create a new property enricher.
public PropertyEnricher ( string name, object value, bool destructureObjects = false ) : System
name string The name of the property.
value object The value of the property.
destructureObjects bool If true, and the value is a non-primitive, non-array type, /// then the value will be converted to a structure; otherwise, unknown types will /// be converted to scalars, which are generally stored as strings.
리턴 System