log4net.LokiAppender 1.0.5

dotnet add package log4net.LokiAppender --version 1.0.5                
NuGet\Install-Package log4net.LokiAppender -Version 1.0.5                
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.LokiAppender" Version="1.0.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add log4net.LokiAppender --version 1.0.5                
#r "nuget: log4net.LokiAppender, 1.0.5"                
#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.LokiAppender as a Cake Addin
#addin nuget:?package=log4net.LokiAppender&version=1.0.5

// Install log4net.LokiAppender as a Cake Tool
#tool nuget:?package=log4net.LokiAppender&version=1.0.5                

Appender config

<log4net>
  <appender name="Loki" type="log4net.Appender.LokiAppender, log4net.Appender.Loki">
    <BufferSize  value="1" /> 
    <ServiceUrl value="YOUR_LOKI_SERVICE_URL" />
    <label>
        <key value="environment" />
        <value value="debug" />
    </label>
    <label>
        <key value="app" />
        <value value="MyApp" />
    </label>
  </appender>
  <root>
      <level value="INFO"/>
      <appender-ref ref="Loki"/>
    </root>
</log4net>

Send log with exception

logger.Error("Error message", ex);

Send log with custom labels

logger.Info(new MessageLoki("Test",
  new LokiLabel("labelTitle1", "labelValue1"),
  new LokiLabel("labelTitle2", "labelValue2")));
Product 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.

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
1.0.5 31,552 5/13/2021
1.0.4 554 3/18/2021
1.0.3 349 3/18/2021
1.0.2 372 3/18/2021
1.0.1 325 3/18/2021
1.0.0 349 3/18/2021