Log
文前言
基本上這篇是介紹各種我用過的東西
包含:NLog、log GUI 工具等等。
主文
NLog
ref: NLog 教學:快速建立自訂日誌紀錄(基礎篇). 嗨嗨,各位好,今天要介紹的是 NLog 這個 logging… | by Tom | appxtech | Medium
(core 版)
- .NET Framework:
- nuget 裝
NLog、NLog.Schema - 複製 raw.githubusercontent.com/NLog/NLog/v4.4/src/NuGet/NLog.Config/content/NLog.config 內文字,在跟
NLog.xsd檔案同層位置新增檔案NLog.config,貼上網址內東東後修改成自己想要的 NLog.config的屬性 設定:複製到輸出目錄 (Copy to Output Directory)為有更新才複製 (Copy if newer)public static NLog.Logger logger = NLog.LogManager.GetCurrentClassLogger();
加上 stack trace 訊息:
c# - Customizing when to capture stack trace in NLog - Stack Overflow
tools
Log Parser Studio
- Day24. 凡走過必留下痕跡 - Logging, IIS Log - iT 邦幫忙::一起幫忙解決難題,拯救 IT 人的一天
- Log Parser 與 Log Parser Studio 介紹,快速搜尋iislog - HackMD
- 似乎用的不太成功?(指自訂 nlog 解析的部分)
Visual Log Parser
- 介紹好用工具:Visual Log Parser ( 視覺化操作 LP 語法 ) | The Will Will Web
- GitHub - carehart/visuallogparser: A copy of the code at https://archive.codeplex.com/?p=visuallogparser so I can keep it around
- 過時軟體?
Log4View v2
- 2025 還有更新,挺好用的,一個月免費試用
- 據說過期後還會保留基本功能,拭目以待
- 114/07/25 Edit:
- 過期了,保留的基本功能也挺好用的,大概會繼續用下去吧。
- 但有時候 log 非常簡單的話會跑去開文書編輯器 Notepad++ 比較快開
- 但若是用到比如 core api 之類的有一大堆其他系統訊息,開這隻比較看得懂 (?
log viewer
官網:Styort/LogViewer: Log Viewer for Log4j/NLog
- from 網友推薦
UPDATE LOG
114.
01/08 開新文章
06/02 加上 [tools] 段落
07/24 改換文章版面 (加上例行性 文前言&主文)
07/25 更新 [tools/Log4View v2] 感想
08/15 tools 內各種工具拉出 h4 版面