Add-KrEnrichFromLogContext
SYNOPSIS
Enriches log events with properties from LogContext
SYNTAX
Add-KrEnrichFromLogContext [-LoggerConfig] <LoggerConfiguration> [<CommonParameters>]
DESCRIPTION
Enriches log events with properties from LogContext. Use Push-LogContextProp to add properties.
EXAMPLES
EXAMPLE 1
New-KrLogger | Add-KrEnrichFromLogContext | Add-KrSinkConsole | Register-KrLogger
PARAMETERS
-LoggerConfig
Instance of LoggerConfiguration that is already setup.
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.