-
Notifications
You must be signed in to change notification settings - Fork 50
Set‐LoggingDefaultFormat
external help file: Logging-help.xml Module Name: Logging online version: https://logging.readthedocs.io/en/latest/functions/Set-LoggingDefaultFormat.md schema: 2.0.0
Sets a global logging message format
Set-LoggingDefaultFormat [[-Format] <String>] [<CommonParameters>]
This function sets a global logging message format
Set-LoggingDefaultFormat -Format '[%{level:-7}] %{message}'
Set-LoggingDefaultFormat
It sets the default format as [%{timestamp:+%Y-%m-%d %T%Z}] [%{level:-7}] %{message}
The string used to format the message to log
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: $Defaults.Format
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
https://logging.readthedocs.io/en/latest/functions/Set-LoggingDefaultFormat.md
https://logging.readthedocs.io/en/latest/functions/LoggingFormat.md
https://logging.readthedocs.io/en/latest/functions/Write-Log.md
https://github.com/EsOsO/Logging/blob/master/Logging/public/Set-LoggingDefaultFormat.ps1