-
Notifications
You must be signed in to change notification settings - Fork 49
Add‐LoggingLevel
external help file: Logging-help.xml Module Name: Logging online version: https://logging.readthedocs.io/en/latest/functions/Add-LoggingLevel.md schema: 2.0.0
Define a new severity level
Add-LoggingLevel [-Level] <Int32> [-LevelName] <String> [<CommonParameters>]
This function add a new severity level to the ones already defined
Add-LoggingLevel -Level 41 -LevelName CRITICAL
Add-LoggingLevel -Level 15 -LevelName VERBOSE
An integer that identify the severity of the level, higher the value higher the severity of the level By default the module defines this levels: NOTSET 0 DEBUG 10 INFO 20 WARNING 30 ERROR 40
Type: Int32
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: 0
Accept pipeline input: False
Accept wildcard characters: False
The human redable name to assign to the level
Type: String
Parameter Sets: (All)
Aliases:
Required: True
Position: 2
Default value: None
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/Add-LoggingLevel.md
https://logging.readthedocs.io/en/latest/functions/Write-Log.md
https://github.com/EsOsO/Logging/blob/master/Logging/public/Add-LoggingLevel.ps1