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 Jeff Epstein <je...@insight-interactive.com> on 2002/04/11 15:38:07 UTC

To newline, or not to newline

I'm trying to do something like the following:

[DATE PREFIX AND o_message1][o_message2][o_message3][o_message4][o_message5
AND NEWLINE
][DATE PREFIX AND o_message6 AND NEWLINE
]

This requires being able to print a line (via debug, info, warn, error or
fatal) through an existing Appender, but ignore it's format.  That is, print
o_message, but nothing else.

Also, assuming that a newline is NOT in your format, is it possible to add a
newline to the end of the line?

Something like:

	debug(o_message, b_useFormatting, b_printNewline)
	debug(o_message)
		Equals:  debug(o_message, true, true)
	debugNoln(o_message)
		Equals:  debug(o_message, true, false)
	debugNolnfmt(o_message)
		Equals:  debug(o_message, false, false)
	debugNofmt(o_message)
		Equals:  debug(o_message, false, true)

Is there a non-hack way to do this?  Thanks.

Jeff Epstein
Internet Developer
Insight Interactive Group
302  777 0970
jepstein@insight-interactive.com


DISCLAIMER: The information in this message is confidential and may be
legally privileged. It is intended solely for the addressee.  Access to this
message by anyone else is unauthorized.  If you are not the intended
recipient, any disclosure, copying, or distribution of the message, or any
action or omission taken by you in reliance on it, is prohibited and may be
unlawful.  Please immediately contact the sender if you have received this
message in error. Thank you.



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