Skip to content

Instantly share code, notes, and snippets.

@LinZap
Last active March 2, 2023 08:39
Show Gist options
  • Save LinZap/9fd8579854283b10c51ddf3c18b6acf9 to your computer and use it in GitHub Desktop.
Save LinZap/9fd8579854283b10c51ddf3c18b6acf9 to your computer and use it in GitHub Desktop.
MyLog 支援自訂義 Log 檔案副檔名

MyLog 支援自訂義 Log 檔案副檔名

版本:ZapLib v2.4.3

MyLog 支援自訂義 Log 檔案副檔名 (原本只能強制 .txt)

使用範例

MyLog log = new MyLog("mylog.log");
log.Write("這是一個測試LOG");
Trace.WriteLine(log.LastWritePath); // D:\Storage\mylog.log (最後一次 Log 檔案寫入位置)

回 ZapLib v2.4.3 changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment