Set-ClusterLog
Set-ClusterLog
Sets the size and level of detail for the cluster log.
構文
Parameter Set: InputObject
Set-ClusterLog [-Cluster <String> ] [-InputObject <PSObject> ] [-Level <Int32> ] [-Size <Int32> ] [ <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.
パラメーター
-Cluster<String>
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.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-InputObject<PSObject>
Specifies the cluster from which to generate cluster logs.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
true (ByValue) |
ワイルドカード文字を許可する |
false |
-Level<Int32>
Specifies the log level to set for the cluster. このパラメーターに対して使用できる値: 0
to 5
.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
-Size<Int32>
Specifies the log size to set for the cluster. このパラメーターに対して使用できる値: 8
MB to 1024
MB.
エイリアス |
なし |
必須? |
false |
位置は? |
named |
既定値 |
なし |
パイプライン入力を許可する |
false |
ワイルドカード文字を許可する |
false |
<CommonParameters>
このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
入力
入力型は、コマンドレットにパイプできるオブジェクトの型です。
- Microsoft.FailoverClusters.PowerShell.Cluster
出力
出力型は、コマンドレットによって生成されるオブジェクトの型です。
- Microsoft.FailoverClusters.PowerShell.Cluster
例
Example 1
This example sets the cluster log to a detail level of 1.
PS C:\> Set-ClusterLog -Level 1
Example 2
This example sets the cluster log size to 1024 MB.
PS C:\> Set-ClusterLog -Size 1024