Write-Information¶
Specifies how PowerShell handles information stream data for a command. The included message is logged according to the log level and log path configured as part of the PsLogLite
module.
Write-Information
[-MessageData] <Object>
[[-Tags] <String[]>]
[<CommonParameters>]
Description¶
Info
This function is a proxy function for the Write-Information cmdlet distributed as part of the Microsoft.PowerShell.Utility built-in module. Please refer to Microsoft's documentation for how and where to use this function.
This function uses the same parameters, accepts the same inputs, and produces the same outputs as the cmdlet Write-Information
by implicitly calling a runtime-generated copy of that cmdlet within a wrapper function.
Inside that wrapper, the function sends the content of the -MessageData
parameter as a string to the central log processor, Write-Log
, a private function which decides whether the message gets logged based on the current log level, as well as where the log gets written based on the current log file path.