Add-KrEnrichWithProcessName

SYNOPSIS

Adds the process name to the log context.

SYNTAX

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

DESCRIPTION

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

EXAMPLES

EXAMPLE 1

New-KrLogger | Add-KrEnrichWithProcessName | Register-KrLogger

PARAMETERS

-loggerConfig

Instance of LoggerConfiguration

Type: LoggerConfiguration
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

CommonParameters

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

INPUTS

None

OUTPUTS

LoggerConfiguration object allowing method chaining

NOTES