NLog 介紹及使用 - part1
1. 使用NuGet 下載 nlog套件
2. 搜尋 nlog
3. 安裝這四個套件
安裝完成後:
轉自:NLog 官網
NLog is a free logging platform for .NET, Silverlight and Windows Phone with rich log routing and management capabilities.
It makes it easy to produce and manage high-quality logs for your application regardless of its size or complexity.
NLog is open source software, distributed under the terms of BSD license and source is available on GitHub.
Packages are also available via NuGet.
Supported targets include:
- Files – single file or multiple, with automatic file naming and archival
- Event Log – local or remote
- Database – store your logs in databases supported by .NET
- Network – using TCP, UDP, SOAP, MSMQ protocols
- Command-line console – including color coding of messages
- E-mail – you can receive emails whenever application errors occur
- ASP.NET trace
- … and many more
下一章 介紹 NLog.conifg 的設定 ^_^
參考文章: