Bug 56623

Summary: ThrowableInformationPatternConverter should not use "\n" for line separation
Product: Log4j - Now in Jira Reporter: Isaac Shabtay <isaac>
Component: LayoutAssignee: log4j-dev <log4j-dev>
Status: NEW ---    
Severity: minor    
Priority: P2    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: All   
Attachments: Suggested patch

Description Isaac Shabtay 2014-06-13 23:26:55 UTC
Created attachment 31716 [details]
Suggested patch

for (int i = 0; i < length; i++) {
    String string = stringRep[i];
    toAppendTo.append(string).append("\n");
}

For full compliance and as a best practice, the platform-specific line separator should be used.