forked from Badgerati/Pode
-
Notifications
You must be signed in to change notification settings - Fork 0
Add PodeLogger
mdaneri edited this page Mar 10, 2025
·
1 revision
Adds a custom Logging method for parsing custom log items.
Add-PodeLogger [-Name] <String> [-Method] <Hashtable> [-ScriptBlock] <ScriptBlock> [[-ArgumentList] <Object[]>]
[-ProgressAction <ActionPreference>] [<CommonParameters>]
Adds a custom Logging method for parsing custom log items.
New-PodeLoggingMethod -Terminal | Add-PodeLogger -Name 'Default' -ScriptBlock { /* logic */ }
An array of arguments to supply to the Custom Logger's ScriptBlock.
Type: Object[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 4
Default value: None
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: 2
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
A unique Name for the Logging method.
Type: String
Parameter Sets: (All)
Aliases:
Required: True
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 ScriptBlock defining logic that transforms an item, and returns it for outputting.
Type: ScriptBlock
Parameter Sets: (All)
Aliases:
Required: True
Position: 3
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