Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 940 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 940 Bytes

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.