Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
91 lines (64 sloc) 1.33 KB
external help file online version schema
UniversalDashboard-help.xml
2.0.0

Write-UDLog

SYNOPSIS

Writes a log messge to the Universal Dashboard log.

SYNTAX

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

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: 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: 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: String
Parameter Sets: (All)
Aliases: 

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

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

You can’t perform that action at this time.