log4net across appdomains

前端 未结 5 1585
失恋的感觉
失恋的感觉 2020-12-30 02:18

I have an application which initializes log4net from one appdomain and needs to use it in another appdomain. Is it supported?

If not, should I initialize log4net fro

5条回答
  •  我在风中等你
    2020-12-30 03:13

    Agree with darin, once per app domain. If you're looking to have these applications use consolidated logging, you'll want to choose a logging target that won't be subject to contention (i.e. not FileAppender or RollingFileAppender).

提交回复
热议问题