Skip to content

Get-PodeLogOverride

SYNOPSIS

Gets the override options for a Pode Log event, for a Log Method.

SYNTAX

Get-PodeLogOverride [-LogEvent] <IPodeLogEvent> [[-Id] <String>] [[-Type] <String>]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Gets the override options for a Pode Log event, for a specific Log Method.

EXAMPLES

EXAMPLE 1

$override = Get-PodeLogOverride -LogEvent $logEvent

EXAMPLE 2

$override = Get-PodeLogOverride -LogEvent $logEvent -Id 'DatadogMethod' -Type 'Datadog'

PARAMETERS

-Id

The ID of the Log Method to retrieve the override options for. (Default: $MethodId) The Default value is the ID of the Log Method that is currently being processed.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-LogEvent

The Pode Log Event object to retrieve the override options for.

Type: IPodeLogEvent
Parameter Sets: (All)
Aliases:

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

-ProgressAction

{{ 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

-Type

The type of the Log Method to retrieve the override options for. (Default: $MethodType) The Default value is the type of the Log Method that is currently being processed.

Type: String
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
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

OUTPUTS

System.Collections.Hashtable

NOTES