Feb 17th, 2012, 06:27 AM
Create one log file for each JMS message retrived
I'm developing a JMS consumer system and I'm using log4j. I would like create a log file for each message that my system listen, actually i would like that the file's name come from the header of the message retrieved.
Can anybody help me?
Feb 17th, 2012, 08:04 AM
Don't use log4j... Use SLF4J with Logback and you get that feature out of the box, the SiftingAppender. Set a MDC property configure appropriatly and you are good to go.