< Back
Add-LoggingLevel
Post
NAME Add-LoggingLevel
SYNOPSIS
Define a new severity level
SYNTAX
Add-LoggingLevel [-Level] <Int32> [-LevelName] <String> [<CommonParameters>]
DESCRIPTION
This function add a new severity level to the ones already defined
PARAMETERS
-Level <Int32>
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
Required? true
Position? 1
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-LevelName <String>
The human redable name to assign to the level
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Add-LoggingLevel -Level 41 -LevelName CRITICAL
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Add-LoggingLevel -Level 15 -LevelName VERBOSE
RELATED LINKS
https://logging.readthedocs.io/en/lates ... ngLevel.md
https://logging.readthedocs.io/en/lates ... ite-Log.md
https://github.com/EsOsO/Logging/blob/m ... gLevel.ps1
SYNOPSIS
Define a new severity level
SYNTAX
Add-LoggingLevel [-Level] <Int32> [-LevelName] <String> [<CommonParameters>]
DESCRIPTION
This function add a new severity level to the ones already defined
PARAMETERS
-Level <Int32>
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
Required? true
Position? 1
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-LevelName <String>
The human redable name to assign to the level
Required? true
Position? 2
Default value
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Add-LoggingLevel -Level 41 -LevelName CRITICAL
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Add-LoggingLevel -Level 15 -LevelName VERBOSE
RELATED LINKS
https://logging.readthedocs.io/en/lates ... ngLevel.md
https://logging.readthedocs.io/en/lates ... ite-Log.md
https://github.com/EsOsO/Logging/blob/m ... gLevel.ps1