开发者

log4net is single threaded?

Reading the docs on log4net, I noticed that all the std Appenders are labeled as

"not safe for multithreaded operations"

This makes it sound like none of the Appenders can be used in ASP.Net or a mu开发者_如何学编程lti-threaded client.

Am I mis-reading this? Has anyone encountered problems with threaded log4net Appenders??

Thanks --- Chris


From Log4Net FAQ:

Is log4net thread-safe?

Yes, log4net is thread-safe.

I have used log4net in many ASP.NET applications without any problems getting a logger with:

private static readonly ILog log = LogManager.GetLogger(typeof(MyLogger));
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜