Skip to content
The process enricher for Serilog.
C# PowerShell
Branch: dev
Clone or download
Latest commit 0cd6303 Sep 28, 2019

README.md

Serilog.Enrichers.Process

The process enricher for Serilog.

Build status NuGet Version

To use the enricher, first install the NuGet package:

Install-Package Serilog.Enrichers.Process

Then add Enrich.WithProcessId() and/or .WithProcessName() to the LoggerConfiguration():

Log.Logger = new LoggerConfiguration()
    .WriteTo.Console()
    .Enrich.WithProcessId()
    .Enrich.WithProcessName()
    .CreateLogger();

Copyright © 2016 Serilog Contributors - Provided under the Apache License, Version 2.0.

You can’t perform that action at this time.