RE: Designing logging classes

2001-07-05 Thread Rob Walker
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

Re: HTTPAppender

2001-07-05 Thread Ceki Gülcü
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

Re: Additivity flag

2001-07-05 Thread Paul Glezen
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

Logging in a common parent class

2001-07-05 Thread Ruthven, Colin [IT]
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

HTTPAppender

2001-07-05 Thread Adrian Blakey
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]

RE: Additivity flag

2001-07-05 Thread Veerappan Saravanan
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

RE: Additivity flag

2001-07-05 Thread James House
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

RE: Designing logging classes

2001-07-05 Thread Jim Moore
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

Re: Designing logging classes

2001-07-05 Thread Rob Walker
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

Designing logging classes

2001-07-05 Thread Veerappan Saravanan
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

JMSAppender

2001-07-05 Thread Chintu Sankar
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/ -

RE: Additivity flag

2001-07-05 Thread Mark Womack
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

Re: How to attach Appender to my own category ?

2001-07-05 Thread Paul Glezen
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

Re: question on NDC's

2001-07-05 Thread Ceki Gülcü
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 +

Re: How to attach Appender to my own category ?

2001-07-05 Thread Yuriy Larin
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

question on NDC's

2001-07-05 Thread Rob Walker
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

multiple/simultaneous message

2001-07-05 Thread Aliabadi, Babak S (Babak)
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

Re: How to attach Appender to my own category ?

2001-07-05 Thread Paul Glezen
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

Re: How to attach Appender to my own category ?

2001-07-05 Thread Yuriy Larin
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