9 Jul 09:25
RE: Syslog message is sent twice in the case no log4j configuration file is used
From: Berwanger, Christian <christian.berwanger <at> logica.com>
Subject: RE: Syslog message is sent twice in the case no log4j configuration file is used
Newsgroups: gmane.comp.jakarta.log4j.user
Date: 2008-07-09 07:26:36 GMT
Subject: RE: Syslog message is sent twice in the case no log4j configuration file is used
Newsgroups: gmane.comp.jakarta.log4j.user
Date: 2008-07-09 07:26:36 GMT
Nobody has an idea?
-----Original Message-----
From: Berwanger, Christian [mailto:christian.berwanger <at> logica.com]
Sent: Dienstag, 8. Juli 2008 12:15
To: log4j-user <at> logging.apache.org
Subject: Syslog message is sent twice in the case no log4j configuration
file is used
Hi log4j comunity,
I'm using the log4j appender in order to send my log message to a remote
host. I decided not to use the config file because the application
itself is already using a central config file which I want to use to
read my configurable data (like hostname, port...). However when I'm
using the log4j API without config file the message is sent twice times.
I read and tried already the hints on the tutorial sites without success
which threads several ideas for the problem of multiple same messages.
m_logger = Logger.getLogger(SecurityEvent.class.getName());
m_logger.setAdditivity(false);
m_syslogAppender = new SyslogAppender();
m_syslogAppender.activateOptions();
m_syslogAppender.setLayout(new PatternLayout("%c: %m%n"));
(Continue reading)
RSS Feed