Default initialisation in Applets

2001-10-04 Thread Dean . Brown
Dear fellow Log4j users, Consider that I have a set of java classes in separate packages, all jar'ed and sent to a browser client as part of an applet (indeed the applet itself has such logging code in it) or some of the same classes are used as part of a servlet. Here's a snippet of the logger

RE: Enhanced error-reporting DOMConfigurator

2001-10-04 Thread Stephen Levinson
I didn't seem to receive the original with the attachment... sorry for the bother.. Stephen -Original Message- From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 04, 2001 4:10 PM To: LOG4J Users Mailing List Subject: Re: Enhanced error-reporting DOMConfigurator Thomas,

Re: Enhanced error-reporting DOMConfigurator

2001-10-04 Thread Ceki Gülcü
Thomas, Thanks for your contribution. Ceki At 19:21 30.08.2001 +0100, you wrote: >Hi, > >I'm tired of Log4j not reporting the line number when parsing XML files, so >I added a few lines in DOMConfigurator.java. Find it attached, and use at >your own discretion. > >-- > >Thomas > > > >*

features

2001-10-04 Thread Boris Garbuzov
Please excuse my novice questions. I am trying to find out about the product's features to propose its usage to my bosses. 1. Does log4j have any utilities for serving log files to a remote user or anything related? 2. Can it produce well-formed XML file with a root tag, not just node list, were i

Re: Will there be a 1.1.3 Patch ?

2001-10-04 Thread Ceki Gülcü
Ed, No, you will need to wait for 1.2. Sorry for the inconvenience. Ceki At 15:21 04.10.2001 -0400, you wrote: >I am interested in getting version 1.7 of PriorityMatchFilter.java >which has the fix that allows custom priorities derived from Priority >to be specified in the config file. > >I do

Re: Custom appender question

2001-10-04 Thread Ceki Gülcü
The JMSAppender like the SocketAppender does not use a layout. The formatting is done at the server side. Regards, Ceki At 11:39 04.10.2001 -0600, you wrote: >I have a custom appender setup that routes messages to JMS . I am using >PatternLayout to format . How do I extract the format that ex

Will there be a 1.1.3 Patch ?

2001-10-04 Thread Ed Soniat
I am interested in getting version 1.7 of PriorityMatchFilter.java which has the fix that allows custom priorities derived from Priority to be specified in the config file. I do not want to maintain this code locally until 1.2 is out of alpha. Thank you for your assistance. Ed ---

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Ceki Gülcü
An answer can be found at: http://jakarta.apache.org/log4j/docs/FAQ.html#filterByPriority Even if nobody seems to ever read the documentation I am in the process of writing a new manual. It is available at: http://jakarta.apache.org/log4j/docs/manual/manual.html or http://jakarta.apache

Re: LogKit

2001-10-04 Thread Ceki Gülcü
Hello to the distinguished Boris Garbuzov, Although logkit does not have a mailing list you can probably ask questions on the jakarta-avalon mailing list. Log4j is not the appropriate forum for logkit related questions. Regards, Ceki At 11:05 04.10.2001 -0700, Boris Garbuzov wrote: >Hello to

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Jon Skeet
> Please find config file and test program attached. I guess I'm > misunderstanding something with respect to configuration, but > I can't see what. I think you'd be better off starting off with a *simple* test program - one that had a single appender (and not CompositeRollingAppender, which I c

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Scott . Whitecross
Thank you. That appears to be what I was missing. Scott "Jon Skeet"

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Thomas Tuft Muller
Please find config file and test program attached. I guess I'm misunderstanding something with respect to configuration, but I can't see what. -- Thomas | -Original Message- | From: Jon Skeet [mailto:[EMAIL PROTECTED]] | Sent: 04 October 2001 18:44 | To: LOG4J Users Mailing List | Subj

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Jon Skeet
> By thresholds, are you referring to 'priority'? No, I'm referring to "threshold". Try using: on the appender you want to only receive events of the error priority and above. Jon - To unsubscribe, e-mail: [EMAIL PROTECTED]

LogKit

2001-10-04 Thread Boris Garbuzov
Hello to all honorable members of Log4j list. I would appreciate your general comment on the libraty Jakarta/Avalon/LogKit that you do not mention as your peer in documentation. My company decided to use it noting that they used to have some compatibility issues with Log4j-Weblogic in the past. Lo

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Scott . Whitecross
By thresholds, are you referring to 'priority'? If this is the case, then I did refer to priorities for each Category. Otherwise, I'm confused by what you mean as threshold. Here's the log4j.xml that I posted earlier:

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Jon Skeet
> I seem to remember someone mentioning a way to do this... (quick > look at my email archive... Ahh, there it is) > On: Tue, 25 Sep 2001 09:01:35 -0400 > Written by: Stephen Levinson <[EMAIL PROTECTED]> > > He quoted the FAQ which stated: > > Is it possible to direct log outpu

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Jon Skeet
> I'm experiencing exactly the same - changing priority levels for the > different categories doesn't seem to have any effect on the logging. > > I'm waiting in anticipation for any input from the gurus... Could you give us a short but complete test: configuration files, test classes etc? I've n

Re: Log4J Setup using XML Configuration File

2001-10-04 Thread Eric Smith
Jon Skeet wrote: > > > Well, each appender can have a *threshold*, which is a minimum priority > level. > > Search for "threshold" in the mailing list archive for details. > > > In theory, this means I can log all debug messages for a > > category to one file, all error messages to another fi

Custom appender question

2001-10-04 Thread Doug Glassman
I have a custom appender setup that routes messages to JMS . I am using PatternLayout to format . How do I extract the format that exists in the log4j.properties file for my specific custom appender ? The getProperty will work but its not using the existing infrastructure. public class JMSMsgA

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Jon Skeet
> The problem I'm encountering with the XML configuration, is that the > minimum threshold seems to get over written. I get debug > messages in the error log, even though I'm setting the threshold > for the error file log to 'error'. Could you show where you're doing that? I didn't see any thr

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Thomas Tuft Muller
I'm experiencing exactly the same - changing priority levels for the different categories doesn't seem to have any effect on the logging. I'm waiting in anticipation for any input from the gurus... -- Thomas | -Original Message- | From: [EMAIL PROTECTED] | [mailto:[EMAIL PROTECTED]]

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Scott . Whitecross
I've considered inheritance and have played with the additivity settings to no avail. It appears the problem is that the appenders can't be assigned priorities, only categories can be assigned a single priority for all appenders, through the xml configuration file or any type of config file. Is

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Scott . Whitecross
The problem I'm encountering with the XML configuration, is that the minimum threshold seems to get over written. I get debug messages in the error log, even though I'm setting the threshold for the error file log to 'error'. I did a search for xml configuration problems, but didn't see anythi

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread David Schultz
While it is true that a Category can have multiple appenders, neither the properties file definition nor the log4j.dtd have syntax for assigning a Priority to an Appender. Priority is assigned to the Category. Also, don't forget the inheritance of Categories. The Category "com.lycos.subscriber.

RE: Log4J Setup using XML Configuration File

2001-10-04 Thread Jon Skeet
> First, a quick question: Its my assumption that each log4j > category can have muliple appenders. Yes. > Each appender for a category can also have its own > priority. Well, each appender can have a *threshold*, which is a minimum priority level. Search for "threshold" in the mailing list

Log4J Setup using XML Configuration File

2001-10-04 Thread Scott . Whitecross
First, a quick question: Its my assumption that each log4j category can have muliple appenders. Each appender for a category can also have its own priority. In theory, this means I can log all debug messages for a category to one file, all error messages to another file, and warning messages to

RE: Starter Questions

2001-10-04 Thread mailing lists
Hi David >First Question I can answer: Use %n instead of \n. %n (discussed in the >javadoc for the PropertyConfigurator class) is the OS-independent carriage >return. > Thanks a lot! Works perfectly well with %n. Thomas - To

RE: Starter Questions

2001-10-04 Thread mailing lists
Jon > >Which VM are you using? It could well be that the line number and >filename isn't being passed back in the stack trace - old JITs couldn't >cope as well as modern ones can. > I always use the JRE's from SUN. This particular server runs JRE 1.2.2. Many thanks for your replies. Thomas -

RE: Starter Questions

2001-10-04 Thread David Schultz
First Question I can answer: Use %n instead of \n. %n (discussed in the javadoc for the PropertyConfigurator class) is the OS-independent carriage return. Second Question gets a little stranger, but I think it helps to think of it this way: Where is the JVM for your Web Server executing? That'

RE: Starter Questions

2001-10-04 Thread Jon Skeet
> I have just started to use log4j. After studying the > documentation I tried to make a first implementation in a > servlet. It seems to work so far, but I have some questions: > > In my configuration file I have made the following setting: > > log4j.rootCategory=DEBUG, FILE > log4j.appender.

Starter Questions

2001-10-04 Thread mailing lists
Hello, I have just started to use log4j. After studying the documentation I tried to make a first implementation in a servlet. It seems to work so far, but I have some questions: In my configuration file I have made the following setting: log4j.rootCategory=DEBUG, FILE log4j.appender.FILE=org.

RE: SNMP appender?

2001-10-04 Thread Thomas Tuft Muller
See Marks posting ([EMAIL PROTECTED]) yesterday. -- Thomas | -Original Message- | From: BillWorker 2i Development Team [mailto:[EMAIL PROTECTED]] | Sent: 04 October 2001 11:56 | To: LOG4J Users Mailing List | Subject: Re: SNMP appender? | | | Ceki Gülcü wrote: | | > Ashish, | > | > Mar

Re: SNMP appender?

2001-10-04 Thread BillWorker 2i Development Team
Ceki Gülcü wrote: > Ashish, > > Mark just recently posted code that used joeSNMP. Thanks for the suggestion though. >Ceki > Sorry, didn't realize it. BTW where can I get the code? Ashish Shrestha __ Scanned and protected by Inflex http://pldaniels.com