forked from Badgerati/Pode
-
Notifications
You must be signed in to change notification settings - Fork 0
Test PodeLoggerEnabled
mdaneri edited this page Mar 10, 2025
·
1 revision
Determines if a specified logger or a predefined log type is enabled.
Test-PodeLoggerEnabled [[-Name] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
Test-PodeLoggerEnabled [[-Type] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
This function checks if logging is enabled in Pode and verifies if the specified logger or a predefined log type (Error, Default, Request) exists within the logging configuration.
Test-PodeLoggerEnabled -Name 'MyCustomLogger'
# Checks if the custom logger 'MyCustomLogger' is enabled.
Test-PodeLoggerEnabled -Type Error
# Checks if error logging is enabled.
Test-PodeLoggerEnabled -Type Default
# Checks if default logging is enabled.
Test-PodeLoggerEnabled -Type Request
# Checks if request logging is enabled.
The name of the logger to check. If not specified, it checks if logging is generally enabled.
Type: String
Parameter Sets: ByName
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
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
The type of predefined logging to check. Accepted values: 'Error', 'Default', 'Request'.
Type: String
Parameter Sets: ByType
Aliases:
Required: False
Position: 1
Default value: None
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.
sss
x