< Back

Write-LogWarning

Tue Jan 14, 2020 3:26 am

NAME Write-LogWarning



SYNOPSIS

Writes Warning to all registerd LoggingChannels in the LoggingChannelList.





SYNTAX

Write-LogWarning [-EventId] <Int32> [-Message] <String> [<CommonParameters>]





DESCRIPTION

The Write-LogWarning calls the WriteWarning 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-LogWarning 1 "Some Warning you want to log"















RELATED LINKS