Skip to content

New-PodeLogEventViewerOverride

SYNOPSIS

Create new Override options for the Event Viewer Log Method.

SYNTAX

New-PodeLogEventViewerOverride [[-Id] <String>] [[-EventID] <Int32>] [-Ignore]
 [-ProgressAction <ActionPreference>] [<CommonParameters>]

DESCRIPTION

Creates a new set of override options for the Event Viewer Log Method.

EXAMPLES

EXAMPLE 1

$override = New-PodeLogEventViewerOverride -Ignore

EXAMPLE 2

$override = New-PodeLogEventViewerOverride -EventID 1337

EXAMPLE 3

$override = New-PodeLogEventViewerOverride -Id 'EventViewerMethod' -EventID 1337

PARAMETERS

-EventID

An optional EventID to override the EventID of the Event Viewer Log Method.

Type: Int32
Parameter Sets: (All)
Aliases:

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

-Id

The ID of the Event Viewer Log Method to override. (Default: 'EventViewer')

Type: String
Parameter Sets: (All)
Aliases:

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

-Ignore

Whether to ignore the Event Viewer Log Method when writing log items.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

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