Log4net for logging

I am writing a C# library for Grasshopper and want to add some logging functionality and was thinking of the log4net package. But I have troubles getting it to read the xml configuration file. Has anybody successfully integrated log4net into Grasshopper plugins?

I have the same issue. I am able to get it to work well in other dll projects and console applications, but it doesn’t work in Grasshopper.

I have written a GH component to specify file path and log level, the rest of the configuration I have hard coded. Not very fancy, but it works well for my purpose.
Especially being able to set log level directly from GH is more convenient than editing the XML file.

Yes, after some struggle I also figured that log4net has to be configured at runtime. I was able to do what is demonstrated here: https://stackoverflow.com/questions/16336917/can-you-configure-log4net-in-code-instead-of-using-a-config-file and that works well.