4 messages in org.apache.logging.log4j-userlogger.info() logs twice to the console
FromSent OnAttachments
nak...@drexel.eduJun 1, 2004 12:52 pm 
Alan BrownJun 1, 2004 3:33 pm 
john...@expeditors.comJun 1, 2004 3:57 pm 
nak...@drexel.eduJun 1, 2004 8:04 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:logger.info() logs twice to the consoleActions...
From:nak...@drexel.edu (nak@drexel.edu)
Date:Jun 1, 2004 12:52:15 pm
List:org.apache.logging.log4j-user

Hi,

I am seeing logger.info() requests to log the same messgae twice on the console.
The logger has a FileAppender also and the files contains a single log of the
twicely-logged-on-the-console message.

Here's some pseudocode:

class Foo { //create a logger object on Foo.class

//add apenders = File and Console

//start a process and open an input and output pipes to the process

//for each command written to the input pipe read the process's output from the
output pipe and log it using logger.info(logMessage) }

Again, what I am seeing is that the logMessage gets logged twice on the console
(unexpected), and once on the log file (expected).

Any suggestions?

Thanks, Nik