5.1.6.日誌
1.目的
日誌記錄陳述可以追蹤與理解程式的執行
日誌陳述的輸出比較方便過濾與查詢
2.日誌記錄函式庫
1.Windows API: ReportEvent
1.在程式中呼叫API以在Windows Event log中留下紀錄
2.檢視Windows Event log
在開始功能表下輸入以下指令即可打開Windows Event log
Last updated
日誌記錄陳述可以追蹤與理解程式的執行
日誌陳述的輸出比較方便過濾與查詢
1.Windows API: ReportEvent
1.在程式中呼叫API以在Windows Event log中留下紀錄
2.檢視Windows Event log
在開始功能表下輸入以下指令即可打開Windows Event log
Last updated