< Back

Out-MessageDebug

Sun Jan 12, 2020 4:12 pm

NAME Out-MessageDebug



SYNOPSIS

Logs a DEBUG message to the default logger.





SYNTAX

Out-MessageDebug [[-FunctionName] <String>] [[-Message] <String>] [[-Facility] <Int32>] [<CommonParameters>]





DESCRIPTION





PARAMETERS

-FunctionName <String>



Required? false

Position? 1

Default value $((Get-PSCallStack)[0].Command)

Accept pipeline input? false

Accept wildcard characters? false



-Message <String>



Required? false

Position? 2

Default value $((Get-PSCallStack)[0].InvocationInfo.PositionMessage)

Accept pipeline input? false

Accept wildcard characters? false



-Facility <Int32>



Required? false

Position? 3

Default value 0

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:\\>Log-Debug "funcenstein" ("DateTime now '{0}'" -f [DateTime]::Now)



Logs a DEBUG message for function "funcenstein" to the default logger, if enabled for this log level.











RELATED LINKS