共用方式為


範例 6:停止追蹤會話

下列命令會停止 MyTrace 追蹤會話:

tracelog -stop MyTrace

在回應中,Tracelog 會顯示追蹤會話的屬性。

Operation Status:       0L      The operation completed successfully.

Logger Name:            MyTrace
Logger Id:              2
Logger Thread Id:       000008C8
Buffer Size:            8 Kb
Maximum Buffers:        26
Minimum Buffers:        4
Number of Buffers:      6
Free Buffers:           6
Buffers Written:        1
Events Lost:            0
Log Buffers Lost:       0
Real Time Buffers Lost: 0
AgeLimit:               15
Log File Mode:          Sequential
Log Filename:           C:\Tracing\MyTrace.etl

若要確認追蹤會話已停止,請使用清單 (tracelog -l) 或查詢 (tracelog -q) 命令。