LogEventData.Create Method (Object, LogEventMetadata) |
Creates a new LogEventData and specifies a LogEventMetadata.
Namespace: PostSharp.Patterns.Diagnostics.Custom
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public static LogEventData Create( Object data, LogEventMetadata metadata )
Parameters
- data
- Type: System.Object
The raw CLR object, typically an instance of anonymous type or any other type. - metadata
- Type: PostSharp.Patterns.Diagnostics.Custom.LogEventMetadata
The LogEventMetadata used to interpret data. When this parameter is null, the default LogEventMetadata implementation is used, which maps CLR properties into logging properties.