Name: serilog-enrichers-process
Owner: Serilog
Description: The process enricher for Serilog.
Created: 2016-03-09 06:14:23.0
Updated: 2017-11-16 10:46:37.0
Pushed: 2017-05-29 04:42:02.0
Homepage: null
Size: 27
Language: C#
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
The process enricher for Serilog.
To use the enricher, first install the NuGet package:
all-Package Serilog.Enrichers.Process
Then add Enrich.WithProcess()
and/or .WithProcessName()
to the LoggerConfiguration()
:
Logger = new LoggerConfiguration()
.WriteTo.Console()
.Enrich.WithProcessId()
.Enrich.WithProcessName()
.CreateLogger();
Copyright © 2016 Serilog Contributors - Provided under the Apache License, Version 2.0.