Hi everybody,
I am a new user of Log4j and I was just messing around to get used
to the Log4j architecture. I wanted more priorities so I wrote my own
Priority class extended from the default Log4j.Priority. But then came
the problem ... nothing was logged anymore! I use the log() method
Does the multiple nested NDC headers appear to accumulate over time. That
is does the amount of nesting keep increasing?
I take it that you of course put the entire body of .onMessage() in a
try/finally block and your call to NDC.pop() is the only thing in the
finally block.
scratching head
Bill,
The NDC code is fairly well tested. The only thing I can think of is forgetting to
pop...
At 16:24 07.02.2002 +, you wrote:
Thanks John,
Yes the nesting does increase over time but it might only start 70% of the
way through a volume test. As to your second question, No there are
Dana,
I am afraid you have to write your own implementation of the
org.apache.log4j.spi.TriggeringEventEvaluator interface. This is something
I intend to implement in future versions of log4j.
At 13:25 07.02.2002 +0200, Dana Mor wrote:
Hi
how do I set parameter to
I wrote my own implementation but I need to know if there is a way to take
the
parameter value from a config file like adapters parameters.
Dana
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 07, 2002 7:08 PM
To: Log4J Users List; '[EMAIL
Ceki,
You wrote...
The NDC code is fairly well tested. The only thing I can think of is
forgetting to pop...
after I wrote:
We had a problem like this under the Sybase app server, which I
reported..
Which leads me to suspect you do not believe my problem exists. I guess
that
First, I'd highly recommend against log4j.properties existing in the system classpath
that WebLogic runs under. The only thing I've found that, for a typical application,
would go in WebLogic's system classpath is JDBC drivers. Everything else should go in
the .ear file.
Second, our use of a
Donnie,
I'm in a situation where I really need to be able to modify the
log4j.properties file after the application is deployed, which means
that the file must be outside of the .ear file. We're using the
conifgureAndWatch() call to set this up and naming it something unique
such as
If that's a fundamental requirement, then that seems like a reasonable approach. J2EE
really seems to be focused on fully-packaged deployments with no reliance at the app
level on the file system itself. Of course, you can only take that so far since the
configuration for a log file will need
DONNIE HALE wrote:
[snip]
Our approach was likely to be an admin EJB which we'd call to accomplish what
you're using configureAndWatch for. The advantage of your approach is simplicity.
The advantage of ours is portability across both containers and logging packages.
Interesting thought,
I'm jumping in on the middle of a thread so excuse me if I'm missing something.
I'd think the most EJB styled approach would be to put everything in the DB, logs
and configuration. The JDBCAppenders in contribs work well for logging. You'd need a
special configureAndWatch to handle pulling
Sorry for not looking at this earlier.
At 11:01 07.02.2002 -0700, ajack wrote:
Ceki,
You wrote...
The NDC code is fairly well tested. The only thing I can think of is
forgetting to pop...
after I wrote:
We had a problem like this under the Sybase app server, which I
I know it is possible to add a JTextAreaAppender and append to a JTextArea,
but is it possible to append to a JOptionPane even though the JOptionPane
class does not have an append method as the JTextArea class does.
Thanks,
Geary
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For
I believe you can only append to appenders (classes that either extend
AppenderSkeleton or implement Appender). I don't believe JOptionPane does
either. So, to answer your question directly, no.
Mark
-Original Message-
From: Gunter, Geary [mailto:[EMAIL PROTECTED]]
Sent: Thursday,
14 matches
Mail list logo