Skip to content

serilog/serilog-enrichers-process

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8636cb4 · Jun 14, 2024

History

72 Commits
Oct 15, 2020
Jun 14, 2024
Jun 11, 2024
Mar 14, 2016
Mar 14, 2016
Mar 9, 2016
Jun 14, 2024
Mar 14, 2016
Mar 9, 2016
Sep 27, 2019
Jun 14, 2024
Oct 18, 2020

Repository files navigation

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.