Skip to content
Source

Write-Debug

Writes a debug message to the debug stream, logged according to the log level and log path configured as part of the PsLogLite module.

Write-Debug
    [-Message] <String>
    [<CommonParameters>]

Description

Info

This function is a proxy function for the Write-Debug 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-Debug by implicitly calling a runtime-generated copy of that cmdlet within a wrapper function.

Inside that wrapper, the function sends the content of the -Message parameter 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.

Write-Error

Write-Host

Write-Information

Write-Output

Write-Verbose

Write-Warning


Last update: 2020-08-30