Elastic.Apm.NLog
1.4.0-beta1
Prefix Reserved
This is a prerelease version of Elastic.Apm.NLog.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Elastic.Apm.NLog --version 1.4.0-beta1
NuGet\Install-Package Elastic.Apm.NLog -Version 1.4.0-beta1
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Elastic.Apm.NLog" Version="1.4.0-beta1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Elastic.Apm.NLog --version 1.4.0-beta1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Elastic.Apm.NLog, 1.4.0-beta1"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Elastic.Apm.NLog as a Cake Addin #addin nuget:?package=Elastic.Apm.NLog&version=1.4.0-beta1&prerelease // Install Elastic.Apm.NLog as a Cake Tool #tool nuget:?package=Elastic.Apm.NLog&version=1.4.0-beta1&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Elastic APM NLog Layout Renderer
Allows you to add the following place holders in your NLog templates
ElasticApmTraceId
ElasticApmTransactionId
Which will be replaced with the appropriate Elastic APM variables if available
How to Enable
var target = new MemoryTarget();
target.Layout = "${ElasticApmTraceId}|${ElasticApmTransactionId}|${message}";
Agent.Tracer.CaptureTransaction("TestTransaction", "Test", t =>
{
traceId = "trace-id";
transactionId = "transaction-id";
logger.Debug("InTransaction");
});
// Logged message will be in format of `trace-id|transation-id|InTransaction`
// or `||InTransaction` if the place holders are not available
Prerequisite
The prerequisite for this to work is a configured Elastic APM Agent. If the agent is not configured the APM place holders will be empty.
Copyright and License
This software is Copyright (c) 2014-2020 by Elasticsearch BV.
This is free software, licensed under: The Apache License Version 2.0.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Elastic.Apm (>= 1.2.0)
- NLog (>= 4.5.4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.12.3 | 1,197 | 11/26/2024 |
8.12.2 | 6,311 | 10/22/2024 |
8.12.1 | 5,723 | 10/3/2024 |
8.12.0 | 1,261 | 9/26/2024 |
8.11.1 | 27,909 | 6/10/2024 |
8.11.0 | 15,217 | 4/10/2024 |
8.6.1 | 126,075 | 8/3/2023 |
8.6.0 | 32,925 | 5/9/2023 |
8.4.0-alpha4 | 138 | 3/28/2023 |
8.4.0-alpha3 | 121 | 3/15/2023 |
8.4.0-alpha2 | 120 | 3/1/2023 |
8.4.0-alpha1 | 130 | 2/20/2023 |
1.6.0-alpha1 | 6,370 | 6/2/2021 |
1.5.3 | 904,939 | 6/1/2021 |
1.5.1 | 121,152 | 6/3/2020 |
1.5.0 | 6,123 | 3/30/2020 |
1.4.4 | 542 | 3/25/2020 |
1.4.3 | 979 | 3/16/2020 |
1.4.2 | 654 | 3/6/2020 |
1.4.1 | 619 | 2/26/2020 |
1.4.0 | 7,140 | 1/29/2020 |
1.4.0-beta1 | 583 | 1/7/2020 |