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
                    
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="Tipicode.Orion.Logger" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Tipicode.Orion.Logger" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="Tipicode.Orion.Logger" />
                    
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 Tipicode.Orion.Logger --version 1.0.0
                    
#r "nuget: Tipicode.Orion.Logger, 1.0.0"
                    
#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 Tipicode.Orion.Logger@1.0.0
                    
#: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=Tipicode.Orion.Logger&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=Tipicode.Orion.Logger&version=1.0.0
                    
Install as a Cake Tool

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 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. 
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.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.