Skip to content

Write-UDLog

SYNOPSIS

Writes a log messge to the Universal Dashboard log.

SYNTAX

Write-UDLog [-Message] <String> [-Level <String>] [-LoggerName <String>] [<CommonParameters>]

DESCRIPTION

Writes a log messge to the Universal Dashboard log. This can be helpful for debugging endpoints.

EXAMPLES

Example 1

PS C:\> Write-UDLog -Level Debug -Message "Test message"

Writes a debug message to the Universal Dashboard log.

PARAMETERS

-Level

The log level for this log message.

Type: System.String
Parameter Sets: (All)
Aliases:
Accepted values: Debug, Info, Warning, Error

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-LoggerName

The name of the logger. This is useful for grouping log messages together.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Message

The message to log.

Type: System.String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
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.

INPUTS

None

OUTPUTS

System.Object

NOTES

Back to top