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
<PackageReference Include="Serilog.Enrichers.Xperience" Version="0.0.3" />
<PackageVersion Include="Serilog.Enrichers.Xperience" Version="0.0.3" />
<PackageReference Include="Serilog.Enrichers.Xperience" />
paket add Serilog.Enrichers.Xperience --version 0.0.3
#r "nuget: Serilog.Enrichers.Xperience, 0.0.3"
#:package Serilog.Enrichers.Xperience@0.0.3
#addin nuget:?package=Serilog.Enrichers.Xperience&version=0.0.3
#tool nuget:?package=Serilog.Enrichers.Xperience&version=0.0.3
Serilog.Enrichers.Xperience
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
- Add the package to your project.
- Configure Serilog in your application’s startup.
- 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 | 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 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. |
-
net8.0
- Kentico.Xperience.WebApp (>= 30.0.0)
- Serilog (>= 3.0.0)
-
net9.0
- Kentico.Xperience.WebApp (>= 30.0.0)
- Serilog (>= 3.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.