Bug 56623 - ThrowableInformationPatternConverter should not use "\n" for line separation
Summary: ThrowableInformationPatternConverter should not use "\n" for line separation
Status: NEW
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Layout (show other bugs)
Version: unspecified
Hardware: PC All
: P2 minor
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-13 23:26 UTC by Isaac Shabtay
Modified: 2014-06-13 23:27 UTC (History)
0 users



Attachments
Suggested patch (800 bytes, text/plain)
2014-06-13 23:26 UTC, Isaac Shabtay
Details

Note You need to log in before you can comment on or make changes to this bug.
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.