Thanks for the suggestions Jim.
We looked at this approach during our initial investigations.
Unfortunately there were a couple of problems in it for us:
(1) Our developer diagnostics go deeper than just DEBUG, in fact
they use the full range of priorities and we didn't particularly want to
c
Adrian,
Many thanks for the HTMLAppender. Would you by any chance have the corresponding
servlet? Regards, Ceki
At 19:04 05.07.2001 -0700, you wrote:
>I needed this, so I wrote it. Hope it's some use.
>
>Adrian Blakey
>
>-
>To
James House wrote:
>
> Also, I've seen it asked a few times, but I haven't ever seen the
> answer: Is there some documentation that provides the exhaustive
> list of configuration options (for XML and property files)???
>
There is no single place (right now) where every configuration option
for
I have a common servlet class called AbstractServlet which my individual
application servlets extend - Test1 and Test2. Each servlet must log to a
different file using a DailyRollingFileAppender(say).
I used the recommended approach of having a static in each class I
instantiate during constructi
I needed this, so I wrote it. Hope it's some use.
Adrian Blakey
HTTPAppender.java
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
log4j.additivity.categoryName=false
-Original Message-
From: James House [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 2:23 PM
To: LOG4J Users Mailing List
Subject: RE: Additivity flag
Can anyone answer how to do this in the properties file?
Also, I've seen it asked a few t
Can anyone answer how to do this in the properties file?
Also, I've seen it asked a few times, but I haven't ever seen the
answer: Is there some documentation that provides the exhaustive
list of configuration options (for XML and property files)???
At 7/5/2001 10:52 AM -0700, you wrote:
>Thoma
You can get the same effect as (1) using the more conventional method.
What I mean is that instead of a setup like this:
class A {
private static RUNTIME_LOGGER = Category.getInstance(A.class.getName());
private static DIAG_LOGGER =
Category.getInstance("DIAG."+A.class.getName());
public
Van
We use a hybrid method:
(1) Diagnostic (i.e. developer) logging uses static Categories, with
the logging classname being use for the category name. This very
much parallels the examples in the log4j documentation. We pre-
pend all category names with "DIAG." to ease enabling/disabling of
I was curious as to how logging is supposed to be implemented. I can
basically see these two approaches
1. Make every class a logging class. i.e, All domain classes should inherit
from a class called Log, which takes care of logging. Here you can argue
that all classes are loggers so it's appro
Hi All,
Can anybody give me an example of the xml
configurationfile which uses the JMSAppender.
Thanks
Chintu
__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/
-
Thomas,
Here is an example of using the additivity flag in the xml format:
As to what properties are available, I would suggest looking at the api
documentation. Any setXXX method defines a property you should be able to
set via a configuration file. Also, for the
Yuriy Larin wrote:
>
> Sorry for mistake (how to specify category in the XML) I meant "to specify
> CategoryFactory in XML".
>
That's what I meant too.
> Unfortunatly I didn't find examples. (log4j 1.1.3) :(((
>
Check out the package documentation for
org.apache.log4j.examples.appserver.
Once a
Rob,
Yes, this has been suggested in the past. I think it is quite an important feature.
Thanks for the suggestion in any case. InheritedThreadLocals will be used if and when
we drop support for JDK 1.1 sometime in the future, probably in log4j version 1.2.
Regards, Ceki
At 17:11 05.07.2001 +
Thank you Paul for fast answers.
> > > You can do this in at least two ways.
> > > 1. Safe but more work
> > > Create a factory for your category. Specify the factory in your
> > > configuration file.
> > Am I wrong ?
> The option is there in the DTD; but it is a new one that you might not
> ha
There's probably a good reason for this, but it struck me that
InheritedThreadLocal's might help with child threads auto-inheriting
their parent's NDC.
Anyone looked into this. Immediately obvious drawback would be
compatibility, since I think ThreadLocal/InheritedThreadLocal are
JDK1.2+. But
I was wondering how does log4j handles multiple/simultaneous log messages-
Does it put them in a queue and print them based on priority? or does the
client have to write it's own routine to handle that
Thanks
Babak S. Aliabadi
Software Engineer
Devt/UI - iCare/cCare
Cambridge, MA 02142
617.39
Yuriy Larin wrote:
>
> Thank you Paul.
>
> > You can do this in at least two ways.
> > 1. Safe but more work
> > Create a factory for your category. Specify the factory in your
> > configuration file.
> I see. But... how to specify category in the XML configuration file? I need
> store it in th
Thank you Paul.
> You can do this in at least two ways.
> 1. Safe but more work
> Create a factory for your category. Specify the factory in your
> configuration file.
I see. But... how to specify category in the XML configuration file? I need
store it in the XML. Unfortunatly I don't see this a
19 matches
Mail list logo