Write-VerboseMessage

SYNOPSIS

Writes a formatted verbose message.

SYNTAX

Write-AtlassianVerboseMessage [-Message] <String> [[-Cmdlet] <PSCmdlet>] [<CommonParameters>]

DESCRIPTION

Writes verbose output using the configured message style settings (Breadcrumbs, Indent, FunctionName, and TimeStamp).

Use this helper instead of shadowing PowerShell’s built-in Write-Verbose command.

EXAMPLES

EXAMPLE 1

Write-AtlassianVerboseMessage -Message 'Shared runtime diagnostic message.' -Verbose

Writes a verbose message using the configured message style.

EXAMPLE 2

Set-AtlassianConfiguration -Name Message -Value ([AtlassianPS.MessageStyle]::new(2, $false, $true, $false))
Write-AtlassianVerboseMessage -Message 'Shared runtime diagnostic message.' -Verbose

Writes a breadcrumb line and an indented verbose message based on the configured message style.

PARAMETERS

-Message

Message to write to the verbose stream.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-Cmdlet

Optional cmdlet context used for function-name formatting. Defaults to the caller’s $PSCmdlet when called from an advanced function.

Type: PSCmdlet
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: Caller $PSCmdlet
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).

INPUTS

System.String

OUTPUTS

None

NOTES

Write-DebugMessage

On this page