Re: Now java error loggin Re: tomcat and log4j

2001-05-07 Thread jason teh
o sorry i forgot to say that i wanted to somehow keep this output in a file (containging a history of what errors have been thrown) aswell as have it sent to the stderr --- Anuj Agrawal <[EMAIL PROTECTED]> wrote: > tomcat already logs errors in logs/jvm.stderr by > default (erm - you might need t

Now java error loggin Re: tomcat and log4j

2001-05-07 Thread SCOTT FARQUHAR
You can specify custom error pages, and they can contain scriptlets to log information about the error. Alternatively you could setup Tomcat's error handling (as was already mentioned). >>> [EMAIL PROTECTED] 05/08/01 12:00am >>> Thanks for you r help guys, ive managed to fix the problem:) whic

Re: Message wrapping

2001-05-07 Thread SCOTT FARQUHAR
Personally I think that wrapping should be done on whatever client you wish to view your logs on. However, if you wished to wrap your messages on the fly, you would need to extend your favourite appender and change the doAppend() method. something like: doAppend(LoggingEvent logevent) { i

Re: problem using log4j on browser.

2001-05-07 Thread SCOTT FARQUHAR
I suspect that this is not a log4j problem. You are probably best to go to http://java.sun.com for a tutorial on applets. www.cse.unsw.edu.au/~cs1021 also has some good information. >>> [EMAIL PROTECTED] 05/08/01 06:30am >>> Hi I am trying to use the log4j for logging my project. it works fine

Message wrapping

2001-05-07 Thread Rhodes, Michael
I've read the docs and searched the archives, but can't find any mention of the functionality I'm interested in. Does anyone know if there's a way in Log4j to get the messages (%m) to wrap? I want to keep a log of client requests and responses which could easily be 20,000 characters long. Fo

problem using log4j on browser.

2001-05-07 Thread Ravi Prasad
Hi   I am trying to use the log4j for logging my project. it works fine when my product run on a appletviewer, but applet doesn't initialize when I try to run the same on a browser.   please let me know if I am missing some thing.   regardsRavi Prasad [EMAIL PROTECTED]

Re: XML configuration

2001-05-07 Thread Ceki Gülcü
Eric, Does SPXMLLayout have settable properties called Triggerable and LocationInfoOn? In other words, does it have the methods setTriggerable(boolean) and setLocationInfoOn(boolean)? Regards, Ceki At 15:55 07.05.2001 -0400, you wrote: >Hi, > >I am trying to do an XML configuration and is ha

XML configuration

2001-05-07 Thread xu_zhang
Hi, I am trying to do an XML configuration and is having problem with setting parameters of my own Category subclass. Attached is the xml file and error message. Does anyone know the reason? Also, it is still necessary for my own Category subclass to implement OptionHandler interface? Thanks. E

Seeking a job

2001-05-07 Thread Ceki Gülcü
Greetings, In a serious and one time abuse of the posting rules for the log4j mailing lists, I am going to ask the audience if they have an open position for an experienced C, C++, Java developer in their U.S.A. based organization. Indeed, a good friend of mine, Grégoire Jaunin, who very rece

Re: log4j.properties file location bug?

2001-05-07 Thread Ceki Gülcü
At 12:29 07.05.2001 -0400, you wrote: >I find that if I (1) write a little test program and run it from a >command line, and (2) use the log4j static initializer, and (3) the >log4j.jar file is in the jre/lib/ext directory, then the >log4j.properties file is found no matter where it is as long a

RE: log4j.properties file location bug?

2001-05-07 Thread Shunhui Zhu
Title: RE: log4j.properties file location bug? I have been using log4j with Tomcat (and Struts), I've beeen putting log4j.jar in the WEB_INF/lib and log4j.properties in WEB-INF/classes directories, and haven't had any problems. Shunhui -Original Message- From: William Jaynes [

Re: log4j.properties file location bug?

2001-05-07 Thread William Jaynes
I find that if I (1) write a little test program and run it from a command line, and (2) use the log4j static initializer, and (3) the log4j.jar file is in the jre/lib/ext directory, then the log4j.properties file is found no matter where it is as long as it is in a directory that is on the clas

RE: XML based layout manager

2001-05-07 Thread Mike Lépine
I'm fairly new to log4j, but this is probably what you're looking for:   org.apache.log4j.xml.XMLLayout.java   -Original Message-From: abisheks [mailto:[EMAIL PROTECTED]]Sent: Monday, May 07, 2001 4:33 AMTo: [EMAIL PROTECTED]Subject: XML based layout manager Hello All,

Re: Now java error loggin Re: tomcat and log4j

2001-05-07 Thread Anuj Agrawal
tomcat already logs errors in logs/jvm.stderr by default (erm - you might need to look in your wrapper.properties file to make sure it is enabled) .. Anuj. jason teh wrote: > Thanks for you r help guys, ive managed to fix the > problem:) > > which now leads me to another question; is there a way

Now java error loggin Re: tomcat and log4j

2001-05-07 Thread jason teh
Thanks for you r help guys, ive managed to fix the problem:) which now leads me to another question; is there a way to log the error messages that are generated when there is problem with the tomcat server eg there is something wrong with the .java class and an error 500 message is spat back at

Re: tomcat and log4j

2001-05-07 Thread William Jaynes
The javadocs and the code indicate that PropertyConfigurator.configure(String) expects String to be the path to a file. So this method doesn't use the class loader. It's looking for a filepath, so as Anuj said, using just "log4j.properties", the file would have to be in the directory where the VM

RE: Errors in Log4J version 1.16b?

2001-05-07 Thread Thilo Schottelius
Dear Ceki Gülcü, sorry, there were some 1.04 files instead of 1.16b files used (no words about VCafe...) Thilo -Original Message- From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] Sent: Montag, 7. Mai 2001 12:38 To: LOG4J Users Mailing List Subject: Re: Errors in Log4J version 1.16b? Hi Thi

Re: tomcat and log4j

2001-05-07 Thread Dominique JOCAL
Isn't it simply based on the "resource loading" mechanism ? (i.e. the file has to be available in a "root" package in the classpath) Dominique JOCAL Consultant - OCTO Technology mailto:[EMAIL PROTECTED] tel:+33 6 22 66 09 70 http://www.octo.com - Original Message - From: "Anuj Agrawal" <[

Re: tomcat and log4j

2001-05-07 Thread Anuj Agrawal
jason teh wrote: > PropertyConfigurator.configure("log4j.properties"); If you are using the above line in your code, then it is assuming that the log4j.properties file is in the directory that the VM was started - in tomcat's case, it is either the bin directory (if you are starting it from co

Re: Errors in Log4J version 1.16b?

2001-05-07 Thread Ceki Gülcü
Hi Thilo, At 12:00 07.05.2001 +0200, you wrote: >1) when compiling the file XPriority.java which is located in the package >"org.apache.log4j.xml.examples" an error occurs: > >C:\Java\jakarta-log4j-1.1b6\src\java\org\apache\log4j\xml\examples\XPriority >.java(15) : Variable DEBUG_INT in org.ap

Errors in Log4J version 1.16b?

2001-05-07 Thread Thilo Schottelius
1) when compiling the file XPriority.java which is located in the package "org.apache.log4j.xml.examples" an error occurs: C:\Java\jakarta-log4j-1.1b6\src\java\org\apache\log4j\xml\examples\XPriority .java(15) : Variable DEBUG_INT in org.apache.log4j.Priority not accessible from org.apache.log4j.

Re: XML based layout manager

2001-05-07 Thread Ceki Gülcü
Abhishek, Look under org.apache.log4j.xml. You should find an XMLLayout there. Ceki At 10:33 07.05.2001 +0200, you wrote: >Hello All, > >I started to read the LOG4J documentation today. i noted that the patternlayout >manager can log in c style output statements. However, my application needs

XML based layout manager

2001-05-07 Thread abisheks
Hello All,   I started to read the LOG4J documentation today. i noted that the patternlayout manager can log in c style output statements. However, my application needs to log data in XML format. Has anyone already developed a Layout class that logs in XML format ?   regards, Abhishek.