Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/serilog/serilog-enrichers-process
The process enricher for Serilog.
https://github.com/serilog/serilog-enrichers-process
Last synced: 8 days ago
JSON representation
The process enricher for Serilog.
- Host: GitHub
- URL: https://github.com/serilog/serilog-enrichers-process
- Owner: serilog
- License: apache-2.0
- Created: 2016-03-09T06:14:23.000Z (over 8 years ago)
- Default Branch: dev
- Last Pushed: 2024-06-14T09:06:17.000Z (5 months ago)
- Last Synced: 2024-06-15T10:04:55.140Z (5 months ago)
- Language: C#
- Size: 82 KB
- Stars: 24
- Watchers: 11
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
README
# Serilog.Enrichers.Process
The process enricher for Serilog.
[![Build status](https://ci.appveyor.com/api/projects/status/ihq58voxyfwfanyg?svg=true)](https://ci.appveyor.com/project/serilog/serilog-enrichers-process) [![NuGet Version](http://img.shields.io/nuget/v/Serilog.Enrichers.Process.svg?style=flat)](https://www.nuget.org/packages/Serilog.Enrichers.Process/)To use the enricher, first install the NuGet package:
```powershell
Install-Package Serilog.Enrichers.Process
```Then add `Enrich.WithProcessId()` and/or `.WithProcessName()` to the `LoggerConfiguration()`:
```csharp
Log.Logger = new LoggerConfiguration()
.WriteTo.Console()
.Enrich.WithProcessId()
.Enrich.WithProcessName()
.CreateLogger();
```* [Documentation](https://github.com/serilog/serilog/wiki)
Copyright © 2016 Serilog Contributors - Provided under the [Apache License, Version 2.0](http://apache.org/licenses/LICENSE-2.0.html).