Bug 51438 - Pipe characters issue in log() method
Summary: Pipe characters issue in log() method
Status: NEW
Alias: None
Product: Log4j - Now in Jira
Classification: Unclassified
Component: Other (show other bugs)
Version: 1.2
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: log4j-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-27 13:25 UTC by goujona
Modified: 2011-06-27 13:25 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description goujona 2011-06-27 13:25:56 UTC
In the following code :

String test = "[a|b|c]";
System.out.println("+++ " + test);
logger.log(Level.SEVERE, test);

output is :
+++ [a|b|c]
[a

The pipe character and the following characters are not printed.
I tried doubling it ||, escaping it \|, enclosing it '|', using the unicode char \u007c, none of them work.

I'm using log4j-1.2.14.jar but I tried log4j-1.2.16.jar and the issue is still present.

Maybe | has a special meaning and displaying it requires something special.

Any idea ?
Thanks in advance !