I'm developing an RCP application and use log4j to generate logs. Whenever an exception is logged, I want to include a line on the log file to identify the application version.
I could do that by force on the log4j.appender.file.layout.ConversionPattern line on the log4j.properties file, simply writing it down, but then I'd have to remember to change it everytime I change the version number, which is too error-prone for my nerves.
Is there a way to that, either on the log4j.properties file or programatically, in a way that the value logged changes as I change the application version number?
Thank you.