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 Brian Karlak <Br...@syrrx.com> on 2002/09/11 18:37:18 UTC

unformatted printing in log4j?

Hello All --

My group has decided to make the switch from a home-grown logging
solution to Log4j, which seems very well designed and robust.
Unfortunately, we have thousands of lines of code that use our
home-grown logger.  Rather than re-writing all this code, we would much
rather pull the guts out of our homegrown logger and use it as a wrapper
around the real log4j classes, and start using direct log4j calls in our
new code.

The problem comes with a specialized method in our log class called
"printRaw(int level, String msg)".  This method prints a message to the
log without any formatting.  We use it to print tick-mark progress bars
to the log and other such things.  Unfortunately, I do not see any
similar method in the Logger or Category classes, unless log(String
callerFQCN, Priority level, Object message, Throwable t) does the trick.
Does anyone have any suggestions on how to print an unformatted string
to a log?
Thanks plenty in advance,
Brian Karlak


----------
This message contains confidential information and is intended only for
the individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete this e-mail from your system. E-mail transmission cannot be
guaranteed to be secure or error-free as information could be
intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
contain viruses. The sender therefore does not accept liability for any
errors or omissions in the contents of this message, which arise as a
result of e-mail transmission. If verification is required please
request a hard-copy version. 

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