Forum Discussion
nmrao
11 years agoCommunity Hero
May be a small hack, if that is ok, by changing
logger.info(e.getMessage())
to
logger.info('\n'+e.getMessage())
logger.info(e.getMessage())
to
logger.info('\n'+e.getMessage())
davidp_1
11 years agoOccasional Contributor
Thanks!
I have a different hack, though. I changed the layout conversion pattern parameters in the log4j appender definition to include the date plus an extra line break (%n parameter), like this:
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d{dd-MMM-yyyy HH:mm:ss} %n%m%n"/>
</layout>
With the results looking like this:
02-Dec-2015 09:26:17
assert expected == actual
| | |
Some Text| Some Unexpected Text
false- nmrao11 years agoCommunity HeroGot you got over it.