Enable PodeRequestLogging - mdaneri/Pode GitHub Wiki
Enables Request Logging using a supplied output method.
Enable-PodeRequestLogging [-Method] <Hashtable[]> [[-UsernameProperty] <String>] [-Raw] [[-LogFormat] <String>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Enables Request Logging using a supplied output method.
New-PodeLoggingMethod -Terminal | Enable-PodeRequestLogging
The format to use for the log entries. Options are: Extended, Common, Combined, JSON (Default: Combined).
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 3
Default value: Combined
Accept pipeline input: False
Accept wildcard characters: FalseThe 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: FalseIf supplied, the log item returned will be the raw Request item as a hashtable and not a string.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: FalseAn optional property path within the $WebEvent.Auth.User object for the user's Username. (Default: Username).
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.