We have a plugin that gets distributed with third party software (also with our own software) Our plugin is written in C# and contains some log4net logging. In our own software, we have a .exe.config that contains our log4net section and allows for configuration. However on the third-party side we are unable to do this.
Any suggestions on how I can configure it from within the code? (Assuming it has not already been configured, in the case of our own software)?
It's possible to do it, but IMHO it's not a good idea. It's the application, not the libraries, that decides if/how/when/where/what to log. Libraries should only offer logging support (you already do this).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With