Serilog.Enrichers.Xperience 0.0.3

dotnet add package Serilog.Enrichers.Xperience --version 0.0.3
                    
NuGet\Install-Package Serilog.Enrichers.Xperience -Version 0.0.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="Serilog.Enrichers.Xperience" Version="0.0.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Serilog.Enrichers.Xperience" Version="0.0.3" />
                    
Directory.Packages.props
<PackageReference Include="Serilog.Enrichers.Xperience" />
                    
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 Serilog.Enrichers.Xperience --version 0.0.3
                    
#r "nuget: Serilog.Enrichers.Xperience, 0.0.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 Serilog.Enrichers.Xperience@0.0.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=Serilog.Enrichers.Xperience&version=0.0.3
                    
Install as a Cake Addin
#tool nuget:?package=Serilog.Enrichers.Xperience&version=0.0.3
                    
Install as a Cake Tool

Serilog.Enrichers.Xperience

NuGet License: MIT

Serilog.Enrichers.Xperience seamlessly integrates Xperience by Kentico context into your Serilog logs, giving you powerful, real-time insights into user activity, site behavior, and request data. Effortlessly enhance your .NET 8 applications with actionable telemetry for monitoring, troubleshooting, and optimizing your digital experience. All with minimal configuration and maximum value.


Table of Contents


Features

  • Xperience Contextual Data: Enriches Serilog log events with user info, contact info, site, content type, and request data from Xperience.
  • Seamless Integration: Easily add to existing Serilog pipelines.
  • .NET 8 Support: Built and tested for .NET 8 applications.

Installation

Install the NuGet package:

dotnet add package Serilog.Enrichers.Xperience

Or via the NuGet Package Manager:

PM> Install-Package Serilog.Enrichers.Xperience

Requirements

  • .NET 8 or later
  • Xperience by Kentico

Getting Started

  1. Add the package to your project.
  2. Configure Serilog in your application’s startup.
  3. Enable the Xperience enricher.

Usage Example

Here’s a basic Program.cs example for a .NET 8 minimal API/web app:

using Serilog;
using Serilog.Enrichers.Xperience;

var builder = WebApplication.CreateBuilder(args);

// Configure Serilog with the Xperience enricher
builder.Host.UseSerilog((context, services, configuration) => configuration
    .Enrich.WithXperienceEnrichers(services) // <-- Add the enricher
    .WriteTo.Console()
    .ReadFrom.Configuration(context.Configuration)
);

var app = builder.Build();

// Your endpoints here

app.Run();

Note: Ensure you have the correct Xperience dependencies and context available when using the enricher.


FAQ

Q: What versions of Xperience are supported?
A: The enricher targets the latest version of Xperience by Kentico. For legacy support, open an issue.

Q: How do I verify the enricher is working?
A: Log an event and check the output for Xperience-specific properties (user, site, request info).

Q: Does this work with older .NET versions?
A: .NET 8+ is required.


Contributing

Contributions are welcome! Please open issues or submit pull requests.
If you have feature requests or questions, open a discussion or issue on GitHub.

To contribute:

  • Fork this repository
  • Create a feature branch
  • Open a pull request describing your changes

License

This project is licensed under the MIT License. See the LICENSE file for details.


Serilog and Xperience by Kentico are trademarks of their respective owners.

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 is compatible.  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
0.0.3 154 6/26/2025
0.0.2 161 6/20/2025