Can Log4net run in the newly created AppDomain

I have a windows service that executes code snippets in a new AppDomain. This AppDomain is created only to execute these pieces of code, and then destroyed after that. I use log4net for logging, as I like its simplicity and flexibility. It works fine in AppDomain by default, but logging statements in the newly created AppDomain is not logged. Is this a limitation in log4net or simply because I am not configuring it correctly.

+4
source share
1 answer

I think this should work, but you need to initialize log4net for the new AppDomain. If you go to a file, you may have problems with blocking.

See also question .

+1
source

All Articles