You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`Elastic.CommonSchema`| Foundational project that contains a full C# representation of ECS, used by the other integrations listed. |[![NuGet Release][ElasticCommonSchema-image]][ElasticCommonSchema-nuget-url]|
18
-
|`Elastic.CommonSchema.Serilog`| Formats a Serilog log message into a JSON representation that can be indexed into Elasticsearch. |[![NuGet Release][ElasticCommonSchemaSerilog-image]][ElasticCommonSchemaSerilog-nuget-url]|
19
-
|`Elastic.Apm.SerilogEnricher`| Adds transaction id and trace id to every Serilog log message that is created during a transaction. This works in conjunction with the Elastic.CommonSchema.Serilog package and forms a solution to distributed tracing with Serilog. |[![NuGet Release][ElasticApmSerilogEnricher-image]][ElasticApmSerilogEnricher-nuget-url]|
20
-
|`Elastic.Apm.NLog`| Introduces two special placeholder variables (ElasticApmTraceId and ElasticApmTransactionId) for use within your NLog templates. |[![NuGet Release][ElasticApmNLog-image]][ElasticApmNLog-nuget-url]|
21
-
|`Elastic.CommonSchema.BenchmarkDotNetExporter`| An exporter for BenchmarkDotnet that can index benchmarking results directly into Elasticsearch, which can be helpful for detecting code-related performance problems over time. |[![NuGet Release][ElasticBenchmarkDotNetExporter-image]][ElasticBenchmarkDotNetExporter-nuget-url]|
17
+
|`Elastic.CommonSchema`| Foundational project that contains a full C# representation of ECS, used by the other integrations listed. |[![NuGet Release][ElasticCommonSchema-image]][ElasticCommonSchema-nuget-url]|
18
+
|`Elastic.CommonSchema.Serilog`| Formats a Serilog log message into a JSON representation that can be indexed into Elasticsearch. |[![NuGet Release][ElasticCommonSchemaSerilog-image]][ElasticCommonSchemaSerilog-nuget-url]|
19
+
|`Elastic.CommonSchema.NLog`| Formats an NLog message into a JSON representation that can be indexed into Elasticsearch. |[![NuGet Release][ElasticCommonSchemaNLog-image]][ElasticCommonSchemaNLog-nuget-url]|
20
+
|`Elastic.Apm.SerilogEnricher`| Adds transaction id and trace id to every Serilog log message that is created during a transaction. This works in conjunction with the Elastic.CommonSchema.Serilog package and forms a solution to distributed tracing with Serilog. |[![NuGet Release][ElasticApmSerilogEnricher-image]][ElasticApmSerilogEnricher-nuget-url]|
21
+
|`Elastic.Apm.NLog`| Introduces two special placeholder variables (ElasticApmTraceId and ElasticApmTransactionId) for use within your NLog templates. |[![NuGet Release][ElasticApmNLog-image]][ElasticApmNLog-nuget-url]|
22
+
|`Elastic.CommonSchema.BenchmarkDotNetExporter`| An exporter for BenchmarkDotnet that can index benchmarking results directly into Elasticsearch, which can be helpful for detecting code-related performance problems over time. |[![NuGet Release][ElasticBenchmarkDotNetExporter-image]][ElasticBenchmarkDotNetExporter-nuget-url]|
Formats an NLog event into a JSON representation that adheres to the Elastic Common Schema. [Learn more...](https://github.com/elastic/ecs-dotnet/tree/master/src/Elastic.CommonSchema.NLog)
63
+
64
+
```csharp
65
+
Layout.Register<EcsLayout>("EcsLayout"); // Register the ECS layout.
66
+
varconfig=newConfig.LoggingConfiguration();
67
+
varmemoryTarget=newEventInfoMemoryTarget { Layout=Layout.FromString("EcsLayout") }; // Use the layout.
0 commit comments