Start-VMTrace
Starts tracing to a file.
语法
Parameter Set: Default
Start-VMTrace [-Level] <TraceLevel> {Off | Error | Warning | Info | Verbose} [-Path <String> ] [-TraceVerboseObjects] [ <CommonParameters>]
详细说明
The Start-VMTrace cmdlet starts tracing to a file. You can use this information for advanced debugging.
参数
-Level<TraceLevel>
Specifies the level of tracing. 此参数的可接受值是:
-- Off
-- Error
-- Warning
-- Info
-- Verbose
别名 |
none |
是否必需? |
true |
在哪里? |
1 |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
false |
-Path<String>
Specifies the path of the file where this cmdlet stores the trace information.
别名 |
none |
是否必需? |
false |
在哪里? |
named |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
false |
-TraceVerboseObjects
Specifies that tracing uses verbose objects.
别名 |
none |
是否必需? |
false |
在哪里? |
named |
默认值 |
none |
是否接受管道输入? |
false |
是否接受通配符? |
false |
<CommonParameters>
此 cmdlet 支持常见的参数:-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer 和 -OutVariable。有关详细信息,请参阅 TechNet 上的 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。
输入
输入类型是可以传送到 cmdlet 的对象的类型。
输出
输出类型是 cmdlet 发出的对象的类型。
- System.Object
示例
Example 1: Start error tracing
This command starts tracing at the level of Error.
PS C:\> Start-VMTrace -Level Error