在log4net中为每个线程创建单独的文件 [英] Create Separate File for Each Thread in log4net

查看:152
本文介绍了在log4net中为每个线程创建单独的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序适用于多个线程,如果有任何问题,很难跟踪问题。目前文件是按日期创建的。

My application works on several threads and the huge logging is expected where this is very difficult to track an issue, if any. For the time being the file is crated by date.

推荐答案

这已在网上多次讨论过。



谷歌log4net为每个线程分开文件并开始阅读。
This has been discussed many times all over the web.

Google for "log4net separate files for each thread" and start reading.


这篇关于在log4net中为每个线程创建单独的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆