Enable PodeDefaultLogging - mdaneri/Pode GitHub Wiki


external help file: Pode-help.xml Module Name: Pode online version: PodeType: Logging schema: 2.0.0

Enable-PodeDefaultLogging

SYNOPSIS

Enables Default Logging using a supplied output method.

SYNTAX

Enable-PodeDefaultLogging [-Method] <Hashtable[]> [[-Levels] <String[]>] [-Raw]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Enables Default Logging using a supplied output method.

EXAMPLES

EXAMPLE 1

New-PodeLoggingMethod -Terminal | Enable-PodeDefaultLogging

PARAMETERS

-Levels

The Levels that should be logged (default is 'Error', 'Emergency', 'Alert', 'Critical', 'Warning', 'Notice', 'Informational').

Type: String[]
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: @('Error', 'Emergency', 'Alert', 'Critical', 'Warning', 'Notice', 'Informational')
Accept pipeline input: False
Accept wildcard characters: False

-Method

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

-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

-Raw

If supplied, the log item returned will be the raw Default 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

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

NOTES

RELATED LINKS

⚠️ **GitHub.com Fallback** ⚠️