Set-ClusterLog
Sets the size and level of detail for the cluster log.
Syntax
Default (Default)
Set-ClusterLog
[-Size <Int32>]
[-Level <Int32>]
[-InputObject <PSObject>]
[-Cluster <String>]
[<CommonParameters>]
Description
The Set-ClusterLog cmdlet sets the size and level of detail for the cluster log. The default
level, 3, includes errors, warnings, and additional information.
Examples
Example 1
Set-ClusterLog -Level 1
This example sets the cluster log to a detail level of 1.
Example 2
Set-ClusterLog -Size 1024
This example sets the cluster log size to 1024 MB.
Parameters
-Cluster
Specifies the name of the cluster on which to run this cmdlet. If the input for this parameter is
. or it is omitted, then the cmdlet runs on the local cluster.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-InputObject
Specifies the cluster from which to generate cluster logs.
Parameter properties
| Type: | PSObject |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | True |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Level
Specifies the log level to set for the cluster. The acceptable values for this parameter are: 0
to 5.
| Level | Error | Warning | Info | Verbose | Debug |
|---|---|---|---|---|---|
| 0 (Disabled) | |||||
| 1 | ✔ | ||||
| 2 | ✔ | ✔ | |||
| 3 (Default) | ✔ | ✔ | ✔ | ||
| 4 | ✔ | ✔ | ✔ | ✔ | |
| 5 | ✔ | ✔ | ✔ | ✔ | ✔ |
Parameter properties
| Type: | Int32 |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Size
Specifies the log size to set for the cluster. The acceptable values for this parameter in Windows
2016 are: 8 MB to 1024 MB. The acceptable values for this parameter in Windows 2019 are:
8 MB to 2048 MB.
Parameter properties
| Type: | Int32 |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.