I’m writing a JAR library that can be included inside any WAR, sending log data to a server (EDIT: it’s an appender for Log4j). In order to later group logs that originated from the same application version, but came from different servers, I want to generate a fingerprint/checksum for the WAR.
I thought about using classpath items and file sizes – but just can’t seem to figure out the best way.
How would you do it?
I’m afraid the only acceptable answer is:
it can’t be done without irresponsible, nasty hacks.