OutWit.Shared.Logging.Provider.Loki 1.1.3

dotnet add package OutWit.Shared.Logging.Provider.Loki --version 1.1.3
                    
NuGet\Install-Package OutWit.Shared.Logging.Provider.Loki -Version 1.1.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="OutWit.Shared.Logging.Provider.Loki" Version="1.1.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="OutWit.Shared.Logging.Provider.Loki" Version="1.1.3" />
                    
Directory.Packages.props
<PackageReference Include="OutWit.Shared.Logging.Provider.Loki" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add OutWit.Shared.Logging.Provider.Loki --version 1.1.3
                    
#r "nuget: OutWit.Shared.Logging.Provider.Loki, 1.1.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.
#:package OutWit.Shared.Logging.Provider.Loki@1.1.3
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=OutWit.Shared.Logging.Provider.Loki&version=1.1.3
                    
Install as a Cake Addin
#tool nuget:?package=OutWit.Shared.Logging.Provider.Loki&version=1.1.3
                    
Install as a Cake Tool

OutWit.Shared.Logging.Provider.Loki

Grafana Loki log provider plugin for OutWit hosts. Thin wrapper over OutWit.Common.Logging.Loki that registers an ILogQueryProvider which translates neutral LogQuery requests into LogQL and dispatches them against /loki/api/v1/*.

Configuration

Plugin reads its own appsettings.json from inside the deployed module folder:

{
  "Loki": {
    "BaseUrl": "",
    "TenantId": "",
    "Username": "",
    "Password": "",
    "DefaultLabels": { "service_name": "WitIdentity" },
    "MaxResultLimit": 1000,
    "MaxRange": "7.00:00:00"
  }
}
Setting Default Description
BaseUrl (required) Loki HTTP endpoint, e.g. http://loki:3100.
TenantId (empty) Multi-tenant Loki tenant id (X-Scope-OrgID header). Leave blank for single-tenant deployments.
Username (empty) Basic-auth username (Grafana Cloud, nginx fronting Loki).
Password (empty) Basic-auth password. Should be supplied via env var Loki__Password — keep the JSON value blank.
DefaultLabels { service_name: WitIdentity } Stream selectors added to every query — narrow the scope to this host's logs.
MaxResultLimit 1000 Maximum entries per query (Loki rejects beyond its server-side cap).
MaxRange 7.00:00:00 Maximum time range per query (d.hh:mm:ss). Protects against accidental full-history scans.

Env-var override convention

Loki__BaseUrl=http://loki.internal:3100
Loki__TenantId=witidentity
Loki__Username=witidentity
Loki__Password=********                    # never put this in JSON

Installation

dotnet add package OutWit.Shared.Logging.Provider.Loki

The plugin's build/.targets auto-copies the module to your output @Logging/loki.module/ at build time. The host's WitPluginLoader<ILogProviderPlugin> discovers it.

License

Apache 2.0 — see LICENSE.txt.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows 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.1.3 49 5/27/2026
1.1.2 44 5/27/2026
1.1.1 93 5/16/2026
1.1.0 87 5/16/2026
1.0.0 126 5/13/2026