开发者

log4net is single threaded?

开发者 https://www.devze.com 2022-12-21 00:12 出处:网络
Reading the docs on log4net, I noticed that all the std Appenders are labeled as \"not safe for multithreaded operations\"

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

精彩评论

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