Announcement Announcement Module
Collapse
No announcement yet.
Create one log file for each JMS message retrived Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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!

  • #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.

    Comment

    Working...
    X