Add-KrEnrichWithExceptionDetail
SYNOPSIS
Adds exception details to the log context.
SYNTAX
Add-KrEnrichWithExceptionDetail [-LoggerConfig] <LoggerConfiguration> [<CommonParameters>]
DESCRIPTION
Adds exception details to the log context, allowing them to be included in log events.
EXAMPLES
EXAMPLE 1
New-KrLogger | Add-KrEnrichWithExceptionDetail | 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.