I am using the log4net.Appender.AdoNetAppender. Is there a way to add the assembly version to each entry?
You can use thread or global context for this purpose. Have a look at this tutorial.
To answer your question better I need to know a bit more details: The version of which assembly do you want to log? Just the version of the executable (simple: just add it to the global context) or of the assembly that contains the code that logs (requires a bit more effort)?
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