< Back
Write-LogError
Post
NAME Write-LogError
SYNOPSIS
Writes Error to all registerd LoggingChannels in the LoggingChannelList.
SYNTAX
Write-LogError [-EventId] <Int32> [-Message] <String> [<CommonParameters>]
DESCRIPTION
The Write-LogError calls the WriteError method on all registerd LoggingChannels in the LoggingChannelList.
PARAMETERS
-EventId <Int32>
Specifies the event identifier. This parameter is required. The maximum allowed value for the EventId
parameter is 65535.
Required? true
Position? 2
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Message <String>
Specifies the event message. This parameter is required.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Write-LogError 1 "Some Error you want to log"
RELATED LINKS
SYNOPSIS
Writes Error to all registerd LoggingChannels in the LoggingChannelList.
SYNTAX
Write-LogError [-EventId] <Int32> [-Message] <String> [<CommonParameters>]
DESCRIPTION
The Write-LogError calls the WriteError method on all registerd LoggingChannels in the LoggingChannelList.
PARAMETERS
-EventId <Int32>
Specifies the event identifier. This parameter is required. The maximum allowed value for the EventId
parameter is 65535.
Required? true
Position? 2
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Message <String>
Specifies the event message. This parameter is required.
Required? true
Position? 3
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Write-LogError 1 "Some Error you want to log"
RELATED LINKS