ArturRios.Logging

Console and file loggers with automatic caller information, custom levels, trace IDs and Microsoft.Extensions.Logging integration.

Docs NuGet License: Attribution

A logging library that works standalone or behind the standard ILogger abstractions.

What you get

  • Console and file loggers, each separately configurable.
  • Automatic caller information — file path and method name captured via compiler attributes, so call sites stay clean.
  • Seven levels — Trace, Debug, Information, Warning, Error, Exception, Critical.
  • Colour-coded console output using ANSI colours, on Windows and Unix alike.
  • Flexible file logging, including splitting logs across files.
  • Trace ID support for correlating entries across a distributed call.
  • Microsoft.Extensions.Logging integration, so it drops into ASP.NET Core and anything else that speaks ILogger.
  • Standalone and state loggers — use directly, or as part of a larger logging state.

Pairs with ArturRios.Util.WebApi, whose middleware propagates a W3C traceparent across a request and its outgoing calls.

Install

dotnet add package ArturRios.Logging

Family dependencies

…and transitively ArturRios.Output.