Enable PodeErrorLogging - mdaneri/Pode GitHub Wiki
Enables Error Logging using a supplied output method.
Enable-PodeErrorLogging [-Method] <Hashtable[]> [[-Levels] <String[]>] [-Raw] [-DisableDefaultLog]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Enables Error Logging using a supplied output method.
New-PodeLoggingMethod -Terminal | Enable-PodeErrorLogging
If supplied, the error logs will NOT be duplicated to the default logging method.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
The Levels of errors that should be logged (default is Error).
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: @('Error')
Accept pipeline input: False
Accept wildcard characters: False
The Method to use for output the log entry (From New-PodeLoggingMethod).
Type: Hashtable[]
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
If supplied, the log item returned will be the raw Error item as a hashtable and not a string (for Custom methods).
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.