[jboss-jira] [JBoss JIRA] (JBRULES-3712) Logging of multiple Solvers in parallel is confusing: support MDC to make them readable

Geoffrey De Smet (JIRA) jira-events at lists.jboss.org
Thu Jan 10 04:38:08 EST 2013


Geoffrey De Smet created JBRULES-3712:
-----------------------------------------

             Summary: Logging of multiple Solvers in parallel is confusing: support MDC to make them readable
                 Key: JBRULES-3712
                 URL: https://issues.jboss.org/browse/JBRULES-3712
             Project: JBRULES
          Issue Type: Feature Request
      Security Level: Public (Everyone can see)
          Components: drools-planner
            Reporter: Geoffrey De Smet
            Assignee: Geoffrey De Smet


Basically we want this kind of logging output when running 3 solvers in parallel:
{code}
Solver1 INFO    Step (34)
Solver1 INFO    Step (35)
Solver2 INFO    Step (88)
Solver1 INFO    Step (36)
Solver2 INFO    Step (89)
Solver7 INFO    Step (10)
Solver3 INFO    Step (37)
{code}
but we don't want to prefix every logging message with the solver name, that's a big pita. Luckily:

SLF4j exposes MDC's which make this a breeze:
http://logback.qos.ch/manual/mdc.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list