---
tags: 軟體介紹
---
# Teraterm auto logging
1. 新增儲存log的資料夾
2. 開啟teraterm-4.88->ttermpro.exe->cancel->Setup->Additional settings->Log
3. 設定==View log editor==為習慣的文字編輯器或預設
4. 設定==Default log file name==為"teraterm-%Y%m%d.log"或任意名稱,有<font color=#f00>%Y%m%d</font>依據日期生成日誌檔,並且同檔名會續寫
5. 設定==Default log save folder==為步驟1的路徑
6. 勾選==Auto start logging==和==Timestamp==,按下確定

8. Setup->Save setup
9. 直接覆蓋==TERATERM.INI==設定檔,或將原始設定檔更名
10. 重開teraterm設定檔即生效並自動產生與寫入日誌檔,直接關閉即結束紀錄,也可使用Tera Term Log工具執行Close、Pause和Help
```
[Wed Apr 08 14:42:25.073 2020] Module Log (TempModule) : Base=23.257202, Top=31.390076
[Wed Apr 08 14:42:26.098 2020] Module Log (TempModule) : Base=23.276489, Top=31.494812
[Wed Apr 08 14:42:27.106 2020] Module Log (TempModule) : Base=23.329346, Top=31.325867
[Wed Apr 08 14:42:27.857 2020]
[Wed Apr 08 14:42:27.857 2020] Rev Raw Data : 0x1 0x6 0x10 0x0 0x0 0x8 0x43 0xc8 0x0 0x0 0x3e 0xf0 0xa3 0xd7
[Wed Apr 08 14:42:27.890 2020]
[Wed Apr 08 14:42:27.890 2020] Command Process : get Command = 0x10
[Wed Apr 08 14:42:27.890 2020] Command Process (Parameter) : rpm=400.000000, rate=0.470000
[Wed Apr 08 14:42:27.890 2020] Send Raw Data : 0x3 0x6 0x10 0x0 0x0 0x0
[Wed Apr 08 14:42:28.114 2020] Module Log (TempModule) : Base=23.272949, Top=31.305420
[Wed Apr 08 14:42:29.122 2020] Module Log (TempModule) : Base=23.213501, Top=31.433899
[Wed Apr 08 14:42:30.129 2020] Module Log (TempModule) : Base=23.269531, Top=31.334229
[Wed Apr 08 14:42:31.135 2020] Module Log (TempModule) : Base=23.241821, Top=31.246033
[Wed Apr 08 14:42:32.144 2020] Module Log (TempModule) : Base=23.264160, Top=31.159058
[Wed Apr 08 14:42:33.168 2020] Module Log (TempModule) : Base=23.394653, Top=31.096924
[Wed Apr 08 14:42:34.176 2020] Module Log (TempModule) : Base=23.321777, Top=31.108276
[Wed Apr 08 14:42:35.183 2020] Module Log (TempModule) : Base=23.340088, Top=31.140930
[Wed Apr 08 14:42:35.359 2020]
[Wed Apr 08 14:42:35.359 2020] Rev Raw Data : 0x1 0x8 0x11 0x0 0x0 0x0
[Wed Apr 08 14:42:35.359 2020]
[Wed Apr 08 14:42:35.359 2020] Command Process : get Command = 0x11
[Wed Apr 08 14:42:35.359 2020] Send Raw Data : 0x2 0x8 0x11 0x0 0x0 0x0
[Wed Apr 08 14:42:36.189 2020] Module Log (TempModule) : Base=23.260986, Top=30.991089
[Wed Apr 08 14:42:37.198 2020] Module Log (TempModule) : Base=23.311157, Top=31.029053
[Wed Apr 08 14:42:38.204 2020] Module Log (TempModule) : Base=23.289307, Top=31.006653
[Wed Apr 08 14:42:39.199 2020] Send Raw Data : 0x3 0x8 0x11 0x0 0x0 0x1 0x2
[Wed Apr 08 14:42:39.213 2020] Module Log (TempModule) : Base=23.437622, Top=30.867432
[Wed Apr 08 14:42:40.236 2020] Module Log (TempModule) : Base=23.386597, Top=31.030029
[Wed Apr 08 14:42:41.244 2020] Module Log (TempModule) : Base=23.329956, Top=30.840393
```