-
Feb 17th, 2012, 06:27 AM
#1
Create one log file for each JMS message retrived
Hi everybody!
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?
Thanks!
-
Feb 17th, 2012, 08:04 AM
#2
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules