You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Johnson, Clay" <cl...@vignette.com> on 2001/10/31 03:31:35 UTC

newline within %m text

Is there a way to insert a newline character inside the event message (%m)
text?  Inserting '\n' results in non-printable (box) character rather than a
line break.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: newline within %m text

Posted by Don Taylor <do...@yahoo.com>.
'\n' isn't gauranteed to work for *any* java program. What you need to
do is get the system property 'line.separator' and append that to your
message at the point you want a newline.

-- Don

--- "Johnson, Clay" <cl...@vignette.com> wrote:
> Is there a way to insert a newline character inside the event message
> (%m)
> text?  Inserting '\n' results in non-printable (box) character rather
> than a
> line break.
> 
> --
> To unsubscribe, e-mail:  
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Make a great connection at Yahoo! Personals.
http://personals.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>