简体   繁体   中英

using Log4net and Activator.CreateInstance

I am using log4net to log my application,

I have weird issue , I have some class that created dynamically using Activator.CreateInstance.

But for some reason that classes don't write the log,

Any Idea why ?

Perhaps Activator.CreateInstance() is choosing a different constructor for this class? I've frequently had a problem where my class has two constructors, and I forgot to get one to call : this(..) and thus my initialization logic didn't get set.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM