Tipicode.Orion.Logger
1.0.0
dotnet add package Tipicode.Orion.Logger --version 1.0.0
NuGet\Install-Package Tipicode.Orion.Logger -Version 1.0.0
<PackageReference Include="Tipicode.Orion.Logger" Version="1.0.0" />
<PackageVersion Include="Tipicode.Orion.Logger" Version="1.0.0" />
<PackageReference Include="Tipicode.Orion.Logger" />
paket add Tipicode.Orion.Logger --version 1.0.0
#r "nuget: Tipicode.Orion.Logger, 1.0.0"
#:package Tipicode.Orion.Logger@1.0.0
#addin nuget:?package=Tipicode.Orion.Logger&version=1.0.0
#tool nuget:?package=Tipicode.Orion.Logger&version=1.0.0
Tipicode.Orion.Logger
An ASP.NET Core ILogger provider that forwards log entries to the Orion centralized logging API. Drop-in replacement for the default logger — authenticated via a per-app API key.
Installation
dotnet add package Tipicode.Orion.Logger
Quick Start
Wire the provider into your app's logging pipeline in Program.cs:
builder.Logging.AddOrionLogging(options =>
{
options.BaseUrl = "https://your-orion-api.com";
options.ApiKey = "log-api-key-from-GET-api-apps-id";
options.Environment = "production"; // optional, default: "production"
options.MinimumLevel = LogLevel.Warning; // optional, default: Information
});
Then inject and use ILogger<T> as normal — no other changes required.
public class MyService
{
private readonly ILogger<MyService> _logger;
public MyService(ILogger<MyService> logger) => _logger = logger;
public void DoWork()
{
_logger.LogInformation("Work started.");
_logger.LogError("Something went wrong.");
}
}
Configuration Options
| Property | Type | Default | Description |
|---|---|---|---|
BaseUrl |
string |
(required) | Base URL of your Orion API, e.g. https://orion.example.com |
ApiKey |
string |
(required) | Log API key from GET /api/apps/{id} → logApiKey |
Environment |
string |
"production" |
Environment tag attached to every log entry |
MinimumLevel |
LogLevel |
Information |
Minimum log level to forward |
ChannelCapacity |
int |
4096 |
Max queued entries before oldest are dropped |
How It Works
Log entries are written to a bounded in-memory channel and flushed asynchronously via a background worker — keeping your request path non-blocking. If the channel is full, the oldest unprocessed entry is dropped to protect host memory. On disposal the provider drains the queue (up to 5 seconds) before releasing resources.
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net8.0
- Microsoft.Extensions.Logging (>= 8.0.0)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.0)
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.0 | 132 | 5/6/2026 |
Initial release of Tipicode.Orion.Logger. Provides an ASP.NET Core ILogger provider that forwards log entries to the Orion centralized logging API via a background channel worker.