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 Bradley Ward <bw...@riverdrop.com> on 2002/09/20 16:04:29 UTC

Newlines in a logged message

A newbie question:

My debug messages that I want to log often have multiple lines. How do I do
that?

I've tried "foo\nbar" and the newline is ignored.

I would want the above to generate output like:

[your log4j message header] foo
bar

or even better,

[your log4j message header] foo
                            bar


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