In my vaadin application, I'd like to create one log file per user session. I started to create a customer file appender but then decided to investigate on ThreadContexts a bit more. I now store the user's uid inside the ThreadContext, which works fine within my PatternLayout (%X{uid}
), but unfortunately not inside the FileAppender (maybe I was a bit naive).
Which way would you go for something like this? Simply put, I'd like to get this result for the time being:
Any ideas or pointers highly appreciated!
Problem solved and lessons learned:
ERROR Unable to invoke factory method in class org.apache.logging.log4j.core.appender.RollingFileAppender
. You'll find the culprit, google won't.