Re: preventing logging to a file?

2001-02-01 Thread Christopher Taylor
Put this in your configuration file: log4j.additivity.com.triene.subpackage=false I got that from the Log4J docs. -Chris Andy Kriger wrote: Yes, and I want to do it in the log4j.properties file, not in the code through calls on a Category object. -Original Message- From: Christopher Taylo

Re: desire PropertyConfigurator.configureAndWatch(URL) method

2001-02-01 Thread JamesW
> The File class offers the lastModified method which makes it easy to check if a file has changed. > URL don't offer a method to check if they have changed. Thus it is not possible to implement the variant you are > asking for. Ceki Not necessarily, URLConnection has a 'setIfModifiedSince()' -

Re: preventing logging to a file?

2001-02-01 Thread Christopher Taylor
If I understand your question properly, what you want to do is turn off additivity for the subpackage category. -Chris Andy Kriger wrote: > Is there a way to have a parent log to a file and a child turn off logging > to that file so it can log to a different file completely? > > For example...

RE: desire PropertyConfigurator.configureAndWatch(URL) method

2001-02-01 Thread Jim Moore
URL doesn't, but URLConnection does. In the case of http it's part of the headers, so you'd have to re-establish the connection each time you want to check. That's a lot of overhead, but may be worth it. -Jim Moore -Original Message- From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] Sent: T

JDBC Appender

2001-02-01 Thread Kevin Steppe
Ok, here it is. Since there will be differences in database schemas and connection/execution methods, I wrote this with the intention that those parts would be overriden by subclasses (that's what I'm doing for my company), however it will work as is if you have a stored procedure spLog @msg. I'

RE: preventing logging to a file?

2001-02-01 Thread Andy Kriger
Yes, and I want to do it in the log4j.properties file, not in the code through calls on a Category object. -Original Message- From: Christopher Taylor [mailto:[EMAIL PROTECTED]] Sent: Thursday, February 01, 2001 5:08 PM To: LOG4J Users Mailing List Subject: Re: preventing logging to a fil

Re: desire PropertyConfigurator.configureAndWatch(URL) method

2001-02-01 Thread Ceki Gülcü
At 12:47 01.02.2001 -0800, you wrote: >Since PropertyConfiguator class >(http://jakarta.apache.org/log4j/javadoc/org/apache/log4j/PropertyConfigurat >or.html) has: >public static void configure(URL > configURL) > >it would be nice to

preventing logging to a file?

2001-02-01 Thread Andy Kriger
Is there a way to have a parent log to a file and a child turn off logging to that file so it can log to a different file completely? For example... log4j.category.com.triene=DEBUG,file1 log4j.category.com.triene.subpackage=DEBUG,file2 By default, subpackage logs to file1 & file2. I want subpack

desire PropertyConfigurator.configureAndWatch(URL) method

2001-02-01 Thread David Sanders
Since PropertyConfiguator class (http://jakarta.apache.org/log4j/javadoc/org/apache/log4j/PropertyConfigurat or.html) has: public static void configure(URL configURL) it would be nice to have a version of configureAndWatch that tak

JMSAppenders

2001-02-01 Thread Scott Chad D 4-5441
I am new to log4j and am trying to set up a simple example using JMSAppenders. I have created the appropriate jndi objects and my "Server" has no problem resolving these objects. However, when I go to run my app that uses the JMSAppender I get an exception (included at bottom). Here is the conf

run-time reconfiguration (plain text this time)

2001-02-01 Thread Richard Trevor
Title: run-time reconfiguration (plain text this time) Sorry about the previous RTF message. Here it is in plain text: Is the resetConfiguration/configure logic  (specifically PropertyConfigurator) a little buggy? I spun up an application with a PropertyConfigurator and it worked just fin

Re: run-time reconfiguration (plain text this time)

2001-02-01 Thread Ceki Gülcü
Rich, One explanation I see is that there is a separate thread logging in between the resetConfiguration() and configure() calls. Is that the case here? Ceki At 08:43 01.02.2001 -0800, you wrote: >Sorry about the previous RTF message. Here it is in plain text: > >Is the resetConfiguration/co

Time to go...

2001-02-01 Thread Pier Fumagalli
Well, it has been quite a long time, and seeing how this project is going, I believe that my "job" of mentor for the Foundation is done. Ceki is a good lead, and from day 0 he has been a valuable contribution to the ASF, and all of you are doing a great job to keep up with a marvelous piece of te

extending Priority?

2001-02-01 Thread Andy Kriger
If I want to add a custom Priority, do I have to use DOMConfigurator instead of PropertyConfigurator? Category automatically finds a log4j.properties file on the user's classpath. Can my system be setup to have that log4j.properties file automatically configure a DOMConfigurator instead of a Prop

RE: Thursday - IT Support

2001-02-01 Thread Mastanvali Sheikh
Hi I am a new user. I am getting error log4j: No appenders could be found for category (com..category.name). log4j: Please initialize the log4j system properly. Can any one tell me in detail how to solve this problem. One of the answer I got is Log4j does not have a default logging target.

RE: Cannot get SyslogAppender to work

2001-02-01 Thread Johan Karlsson TACMa
Hi! It sounds interesting. We are also interested in logging from multiple applets. I'm looking forward to test out your DatagramAppender (if you decide to offer the code to log4j). Regards Johan -Original Message- From: Kitching Simon [mailto:[EMAIL PROTECTED]] Sent: den 31 januari 200

Re: Capturing System.err

2001-02-01 Thread Michiel Meeuwissen
Ceki Gülcü <[EMAIL PROTECTED]> wrote: > The print(String s) and println(String s) methods of X would then redirect > to log4j by calling root.info(s) where root is the root category. I have > not tried this but the idea has been suggested by a number of log4j users. > Do you think that would wo