Compze.Internals.Logging.Serilog
0.6.0-alpha
Prefix Reserved
dotnet add package Compze.Internals.Logging.Serilog --version 0.6.0-alpha
NuGet\Install-Package Compze.Internals.Logging.Serilog -Version 0.6.0-alpha
<PackageReference Include="Compze.Internals.Logging.Serilog" Version="0.6.0-alpha" />
<PackageVersion Include="Compze.Internals.Logging.Serilog" Version="0.6.0-alpha" />
<PackageReference Include="Compze.Internals.Logging.Serilog" />
paket add Compze.Internals.Logging.Serilog --version 0.6.0-alpha
#r "nuget: Compze.Internals.Logging.Serilog, 0.6.0-alpha"
#:package Compze.Internals.Logging.Serilog@0.6.0-alpha
#addin nuget:?package=Compze.Internals.Logging.Serilog&version=0.6.0-alpha&prerelease
#tool nuget:?package=Compze.Internals.Logging.Serilog&version=0.6.0-alpha&prerelease
Compze.Internals.Logging.Serilog
Serilog logging integration for the Compze framework.
What is Compze?
Compze is a .NET framework for building expressive domains through Teventive programming and Typermedia APIs. Learn more
What's in this package?
This package provides a Serilog adapter for Compze's logging abstractions:
- Log backend —
SerilogLogBackend, which writes Compze's log lines to Serilog as structured events - Preconfigured sinks — Console and Seq sinks included
- Environment enrichment — Automatic enrichment with machine name and environment details
- Compact JSON formatting — Structured logging with compact JSON output
Installation
dotnet add package Compze.Internals.Logging.Serilog
Usage
Choose it as the process's logging backend. Compze's loggers look the backend up for each line they write, and the
backend looks up Serilog's static Log.Logger for each line, so neither assignment has to come before anything else:
Log.Logger = new LoggerConfiguration().WriteTo.Console().CreateLogger();
CompzeLogger.Backend = SerilogLogBackend.Global;
To write to a Serilog logger of your own instead of Log.Logger, use SerilogLogBackend.WritingTo(serilogLogger).
Related packages
| Package | Description |
|---|---|
| Compze.Internals.Logging | The logging abstractions this package is a backend for |
License
Apache-2.0
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0 is compatible. |
-
net11.0
- Compze.Contracts (>= 0.7.2)
- Compze.DependencyInjection (>= 0.9.0-alpha)
- Compze.Internals.Logging (>= 0.7.0-alpha)
- Compze.Internals.SystemCE (>= 0.8.0-internal)
- Compze.Threading (>= 0.12.0-alpha)
- Compze.Underscore (>= 0.6.0-beta)
- Serilog (>= 4.3.0)
- Serilog.Enrichers.Environment (>= 3.0.1)
- Serilog.Formatting.Compact (>= 3.0.0)
- Serilog.Sinks.Console (>= 6.0.0)
- Serilog.Sinks.Seq (>= 9.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 |
|---|---|---|
| 0.6.0-alpha | 295 | 11/14/2026 |
| 0.5.0-alpha | 121 | 11/10/2026 |
| 0.4.1-alpha | 125 | 7/24/2026 |
| 0.4.0-alpha | 110 | 7/8/2026 |
| 0.3.2-alpha | 105 | 6/11/2026 |
| 0.3.1-alpha | 106 | 6/8/2026 |
| 0.3.0-alpha | 106 | 6/8/2026 |
| 0.2.0-alpha | 92 | 6/4/2026 |
- **Targets .NET 11 (`net11.0`) instead of .NET 10, and is compiled with runtime async:** the runtime, instead of state machines the compiler generates, suspends and resumes its async methods, so live stack traces show the real call chain. An application that uses this version must target .NET 11.
- **Requires newer minor versions of other Compze packages:** Compze.DependencyInjection 0.9.0-alpha (was 0.8.0-alpha), Compze.Internals.Logging 0.7.0-alpha (was 0.5.0-alpha), Compze.Internals.SystemCE 0.8.0-internal (was 0.4.1-internal), Compze.Threading 0.12.0-alpha (was 0.9.0-alpha). Upgrading to this version upgrades each package listed here too, so their changelogs apply to this upgrade as well.