Add-KrEnrichProcessName
SYNOPSIS
Adds the process name to the log context.
SYNTAX
__AllParameterSets
Add-KrEnrichProcessName [-loggerConfig] <LoggerConfiguration> [<CommonParameters>]
ALIASES
This cmdlet has the following aliases, {{Insert list of aliases}}
DESCRIPTION
Adds the process name to the log context, allowing it to be included in log events.
EXAMPLES
EXAMPLE 1
| New-KrLogger | Add-KrEnrichProcessName | 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
RELATED LINKS
{{ Fill in the related links here }}