Hi Eric,
Eric Kolotyluk wrote:
> OK, here's what I get when I try to build the extras.
>
> Cheers, Eric
>
> BUILD FAILED
> C:\Program Files\Apache\apache-log4j-extras-1.0\build.xml:76: Compile
> failed; see the compiler error output for details.
>
> Total time: 2 seconds
Stupid me. I guess I
Did you get this resolved? I am also facing the same problem..
It would be great if you could share your learnings
pawelt wrote:
>
> I guess thats the problem. The errors are generated from third-party
> library and I don't have it's source code.
> It's important for me to log these errors but
Actually it seems to work. I just wasn't seeing them as I expected to
since the messages from my app were dumped in one tab
("localhost.localdomain"), and the messages from another (the layer
using java utils logging) were oddly mixed into the chainsaw log tab
(which seemed to me to be internal ch
Thx Heri for answering!
Following code unfortunately produces the same problem. I still receive
the message twice.
m_logger = Logger.getRootLogger();
m_logger.setAdditivity(false);
m_syslogAppender = new SyslogAppender();
m_syslogAppender.activateOptions();
m_syslogAppender.setLayout(new Pattern
OK, here's what I get when I try to build the extras.
Cheers, Eric
[C:\Program Files\Apache\apache-log4j-extras-1.0]ant
Buildfile: build.xml
init:
compile:
[javac] Compiling 83 source files to C:\Program
Files\Apache\apache-log4j-extras-1.0\target\classes
[javac] C:\Program
Files\Apache
My only guess is that setting the additivity flag by code does not have
any effect. Or maybe a kind of activateOptions() on the logger must be
performed.
Why dont you fetch the RootLogger for appending your syslog appender, as
you do in your config example? After the log call you clear the
appende
Nobody has an idea?
-Original Message-
From: Berwanger, Christian [mailto:[EMAIL PROTECTED]
Sent: Dienstag, 8. Juli 2008 12:15
To: log4j-user@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 log4