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 Martin Olsen <mv...@gmail.com> on 2007/12/10 08:26:26 UTC

Logging only the message

Hi there,

Does anyony know if log4j is able to print only the message text, prefixing
no level or anything. I've tried to use a "bare bones" pattern "%m%n" but it
still prints the logging level in front of the text. What I want to do is
log a series of SQL statements that may be copy/pasted into PL/SQL Developer
for execution. I know that this kind of thing is not really what log4j was
intended for, but on the other hand I am using log4j for logging anyway so
it seems like an easy approach, if I could only manage to make it print only
the message.

Any help would be appreciated.

Cheers,
/Martin Olsen, Norway
-- 
View this message in context: http://www.nabble.com/Logging-only-the-message-tp14248395p14248395.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Re: Logging only the message

Posted by Martin Olsen <mv...@gmail.com>.
Sorry. Please disregard my question, everything seems to work. I must have
looked at an old log file. As punishment for bothering you, I am currently
slapping my back with a frozen salmon.
-- 
View this message in context: http://www.nabble.com/Logging-only-the-message-tp14248395p14248674.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org