![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
日志
yang_B621
后天的努力改变生活!When life gives you lemons,make lemonade.
展开
-
C# 使用NLog记录日志
https://www.cnblogs.com/felixnet/p/5498759.html原创 2020-04-23 11:07:05 · 417 阅读 · 0 评论 -
日志 - 操作类(一)
在开发,有时为了验证程序运行是否正确,通常要写日志来记录操作,在一个日志类里,通常有两个方法:方法一:以日期为日志文件名public void WriteLog(string msg) { string filePath = AppDomain.CurrentDomain.BaseDirectory + "Log"; if (!Directory.Exists(filePath))...原创 2018-03-07 09:24:01 · 264 阅读 · 0 评论 -
日志 - 操作类
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace Camew { public static class DevTools { static DevTools() { ...原创 2018-04-03 13:32:11 · 221 阅读 · 0 评论 -
日志框架 - Common Logging和log4net
最近对做过的项目进行整理,发现项目用的日志框架不错,就研究了一下,总结如下步骤。1,引用程序集,除了引用这三个程序集之外,还要引用log4net.dll程序集,(注意log4net.dll与Common.Logging.Log4Net1211.dll的版本要一致)2,修改配置文件App.config<?xml version="1.0" encoding="utf-8"?> <c...原创 2018-04-03 16:24:05 · 2509 阅读 · 0 评论