Log build version with log4net?

I am using log4net.Appender.AdoNetAppender. Is there a way to add a build version to each record?

+3
source share
1 answer

You can use a stream or global context for this purpose. Take a look at the tutorial .

To better answer your question, I need to know a little more details: which build version do you want to register? Is it just a version of an executable file (simple: just add it to the global context) or an assembly containing the code that is being registered (requires a bit more effort)?

+2
source

Source: https://habr.com/ru/post/1794568/


All Articles