external help file | Module Name | ms.date | online version | schema | title |
---|---|---|---|---|---|
Microsoft.FailoverClusters.PowerShell.dll-Help.xml |
FailoverClusters |
10/30/2017 |
2.0.0 |
Set-ClusterLog |
Sets the size and level of detail for the cluster log.
Set-ClusterLog [-Size <Int32>] [-Level <Int32>] [-InputObject <PSObject>] [-Cluster <String>]
[<CommonParameters>]
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.
PS C:\>Set-ClusterLog -Level 1
Name
----
cluster1
This example sets the cluster log to a detail level of 1.
PS C:\>Set-ClusterLog -Size 1024
Name
----
cluster1
This example sets the cluster log size to 1024 MB.
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.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the cluster from which to generate cluster logs.
Type: PSObject
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False
Specifies the log level to set for the cluster.
The acceptable values for this parameter are:0
to 5
.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Specifies the log size to set for the cluster.
The acceptable values for this parameter are:8
MB to 1024
MB.
Type: Int32
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
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 (http://go.microsoft.com/fwlink/?LinkID=113216).