ILog logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType); logger.Debug("用Log4Net写入数据库日志"); logger.Error("这是一个错误日志"); logger.Fatal("这是一个致命的错误日志"); logger.Warn("这是一个警告日志")
相关文章
- 09-05PTA(Basic Level)1011.A+B和C
- 09-05PAT (Basic Level) Practise (中文)-1020. 月饼 (25)
- 09-05Basic Level 1077 互评成绩计算 (20分)
- 09-05PCL代码编译过程中出现error LNK2038: 检测到“_ITERATOR_DEBUG_LEVEL”的不匹配项: 值“0”不匹配值“2” 解决方法
- 09-05PAT (Advanced Level) 1107. Social Clusters (30)
- 09-05PAT 乙级 (Basic Level) Practice (中文)1058
- 09-05NLP中对word level,sentence level,document level的理解
- 09-05PTA(Advanced Level)1037.Magic Coupon
- 09-05【学习笔记】High-level Semantic Feature Detection: A New Perspective for Pedestrian Detection/CSP
- 09-05Level Unit 4 Part 1