Add-KrEnrichProcessId

SYNOPSIS

Adds the process ID to the log context.

SYNTAX

__AllParameterSets

Add-KrEnrichProcessId [-loggerConfig] <LoggerConfiguration> [<CommonParameters>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

DESCRIPTION

Adds the process ID to the log context, allowing it to be included in log events.

EXAMPLES

EXAMPLE 1

New-KrLogger Add-KrEnrichProcessId Register-KrLogger

PARAMETERS

-loggerConfig

Instance of LoggerConfiguration

Type: Serilog.LoggerConfiguration
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: true
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

Serilog.LoggerConfiguration

{{ Fill in the Description }}

OUTPUTS

LoggerConfiguration object allowing method chaining

{{ Fill in the Description }}

Serilog.LoggerConfiguration

{{ Fill in the Description }}

NOTES

This function is part of the Kestrun logging infrastructure and should be used to enrich log events with process information. https://github.com/serilog/serilog-enrichers-process

{{ Fill in the related links here }}