help on xml config

2002-05-10 Thread Hu
Hi, I downloaded the log4j1.2 and I downloaded the xml pack from Sun, I put six jar files on the classpath, I load the xml file in a startup class of weblogic. But I got exception: log4j:ERROR Could not parse input source [org.xml.sax.InputSource@3a1834]. java.util.zip.ZipException: The system

Category/Level model?

2002-05-10 Thread Greg Abbas
Hi, I'm in the (hardly unique, apparently :-) position of trying to decide how to address some problems that my company's home-grown logging module has. log4j has lots of very cool features, so I'm tempted to switch over, but I'm not sure whether I've figured out some of the concepts, quite. My

RE: Thirdparty logging and log4J

2002-05-10 Thread Eugene Kovelman
It seems third party vendors use their own logging methods anyway, and it would be interesting if they would provide hooks into their API's for this, because i would rather have a single log file then have a log4J file and then their file. Anyway as far as TopLink is concerned they helped me o

RE: Thirdparty logging and log4J

2002-05-10 Thread Aaron Hoyt
I've actually thought about doing this. You would most likely want to extend Writer in some way. The problem is how to decide when to actually log the data written to the Writer, and how should that data be split. The problem is that Writer's base unit of work is the byte, but logging uses Stri

Re: JDBCAppender performance

2002-05-10 Thread Ceki Gülcü
At 11:17 08.05.2002 -0700, you wrote: >Ceki, You should look more carefully at getConnection() and >closeConnection(). execute(String sql) calls getConnection() which simply >returns an already open connection. Only when a connection is not yet >open is a new one created. This is an improv

Re: Problems with multiple (same) categories, but diff prioritys

2002-05-10 Thread Jeffrey Winter
I didn't read the message carefully enough: If you want DEBUG and above and INFO and above on the filters below, just remove the DenyAllFilter filters from the filter chains and you'll get it. - Original Message - From: "Jeffrey Winter" <[EMAIL PROTECTED]> To: "Log4J Users List" <[EMAIL P

RE: Configuring an ErrorHandler

2002-05-10 Thread Mark Womack
Raúl, What would this error handler do? Handle errors during configuration or something? -Mark > -Original Message- > From: Raúl Carazo [mailto:[EMAIL PROTECTED]] > Sent: Thursday, May 09, 2002 11:54 PM > To: Log4J > Subject: Configuring an ErrorHandler > > > How can I configure an E

RE: Problems with multiple (same) categories, but diff prioritys

2002-05-10 Thread Mark Womack
Having just written a test case for the LevelMatchFilter, I believe that its behavior is to accept ONLY the level you have specified. So, in the first appender, only DEBUG messages will be captured. You will be out of luck if you want debug or above. You can look at using the LevelRangeFilter c

LF5 Filter patch

2002-05-10 Thread Max Rydahl Andersen
Hello log4j-user, Here is my first shot of a patch for enabling more "accessible" filtering in LF5. What it does: The patch makes it possible to filter on message, ndc, thread and category by simply entering the filter in the added "control panel" in the left corner. (very much like

Re: Problems with multiple (same) categories, but diff prioritys

2002-05-10 Thread Jeffrey Winter
First off, I believe the way you've defined things is causing the second to 'overwrite' the first since they have the same name. Second, you can easily do what you want by defining 2 appenders on that logger with filters:

Problems with multiple (same) categories, but diff prioritys

2002-05-10 Thread Julian Kite
Hi, Does anyone know how I can use the DOM based configuration to do the following? My application logs to a Class name based category i.e. ‘uk.co.his.eop.” I want to 1. Put all DEBUG and above messages to a file 2. Put all INFO and above messages to the console If I set up to th

drop in replacement (1.1.3->1.2) problem

2002-05-10 Thread Timur Zambalayev
1.2 is not a drop-in replacement of 1.1.3. >From the project history for 1.2 alpha1-alpha6: "- The disable(Level) methods in Hierarchy have been removed and been replaced by threshold methods. [**]" But these methods were not deprecated in 1.1.3. So there could be code that compiled without d

RE: log4j 1.2 now available

2002-05-10 Thread Rathod, Manoj (CAP, GEFA, Contractor)
Hi, This is in reference to the email below. Im new to the log4j concept and seek some help. Im not able to understand why the subclassing of Logger class is discouraged? Are there any performance related issues?? I would appreciate if someone could help me out with this issue as soon as possib

Strange ObjectRenderer problem

2002-05-10 Thread Thomas Tuft Muller
Log4j gurus, I'm experiencing a strange problem with ObjectRenderer; for a certain program it only works when I insert them programmatically, but not when they are configured in the log4j.xml file. This works fine: LoggerRepository rp = LogManager.getLoggerRepository(); if( rp i

Problems with SMTPAppender

2002-05-10 Thread Thomas Marsh
List: I've used one of the examples for SMTPAppender properties from this list, and am getting: java.lang.NoClassDefFoundError: com/sun/mail/util/MailDateFormat I'm using the recommended (from the FAQ) javamail and JAF. I can't find this class in any of the JARS. Has someone run into this befo