Log4Net.Appender.Grafana.Loki
1.0.3
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 Log4Net.Appender.Grafana.Loki --version 1.0.3
NuGet\Install-Package Log4Net.Appender.Grafana.Loki -Version 1.0.3
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="Log4Net.Appender.Grafana.Loki" Version="1.0.3" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Log4Net.Appender.Grafana.Loki --version 1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Log4Net.Appender.Grafana.Loki, 1.0.3"
#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 Log4Net.Appender.Grafana.Loki as a Cake Addin #addin nuget:?package=Log4Net.Appender.Grafana.Loki&version=1.0.3 // Install Log4Net.Appender.Grafana.Loki as a Cake Tool #tool nuget:?package=Log4Net.Appender.Grafana.Loki&version=1.0.3
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Log4Net Grafana Loki Appender
This appender will allow log4net to be configured to send log messages to Loki directly, some features this library supports:
- JSON format
- Buffering
- Basic Authentication
- GZip Compression
- Using the latest Loki HTTP API POST /loki/api/v1/push.
Installation
The Log4net.Appender.Grafana.Loki NuGet package can be found here. Alternatively you can install it via one of the following commands below:
NuGet command:
Install-Package Log4Net.Appender.Grafana.Loki
Log4net configuration
Sample Log4net config:
<log4net>
<appender name="loki" type="Log4Net.Appender.Loki.LokiAppender, Log4Net.Appender.Grafana.Loki">
<Environment value="Development" />
<Application value="WebApp" />
<BufferSize value="10" />
<ServiceUrl value="http://localhost:3100" />
<BasicAuthUserName value="username" />
<BasicAuthPassword value="password" />
<GZipCompression value="true" />
<TrustSelfSignedCerts value="false" />
</appender>
</log4net>
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6.2
- log4net (>= 2.0.15)
- Newtonsoft.Json (>= 13.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.