新手上路
三星級會員
- 舊站積分
- 3483
- 舊站發表文章數
- 869
|
在下用tvtest裡面的epgtimer預約錄影
有時會預約失敗
有想要試試看bon_driver.ini裡面加
[BonDriver]
DebugLog=1
這樣可以看log看發生什麼錯
但是我在日本網站看人家的log檔都有timestamp而我沒有
log很大如果沒也timestamp我很難除錯
有大大有這方面建議嗎?
謝謝
————————————————————
我找到方法了
下這個dos command
C:\test>tail -F ./bondriver_bda.log | gawk.exe "{s=systime(); print strftime(\"%Y-%m-%d:%H:%M:%S\",s),$0}"
其中tail.exe gawk.exe 是GNU
搜尋GNU tail gawk 就可以下
參考一下
還可以同時顯示在螢幕上載同時存檔
C:\test>tail -F ./bondriver_bda.log | gawk.exe "{s=systime(); print strftime(\"%Y-%m-%d:%H:%M:%S\",s),$0}" | tee -a 1.log
1.log是新存的檔案 |
|