By digging into the log4j BasicConfigurator.class (with my buddy Maurice, credit to the mastermind!) it has a default setup as follows:
root.addAppender(new ConsoleAppender(new PatternLayout("%r [%t] %p %c %x - %m%n")));
This will generate logging output like this:
4513 [main] DEBUG org.jbpm.graph.def.GraphElement - event 'process-start' on ProcessDefinition(Exception Handling) for Token(/) 4654 [main] DEBUG org.jbpm.graph.def.GraphElement - event 'process-start' on ProcessDefinition(Exception Framework) for Token(/)
I adjusted this in my unit tests as follows:
((PatternLayout) ((Appender) Logger.getRootLogger().getAllAppenders() .nextElement()).getLayout()) .setConversionPattern("%r [%t] %p %c %x -%n%n %m%n%n");
This will give you output like this:
4513 [main] DEBUG org.jbpm.graph.def.GraphElement - event 'process-start' on ProcessDefinition(Exception Handling) for Token(/) 4654 [main] DEBUG org.jbpm.graph.def.GraphElement - event 'process-start' on ProcessDefinition(Exception Framework) for Token(/)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.