Re: tomcat and log4j, again

2003-07-03 Thread Vladimer Shioshvili
1. look into using fileappenders, or even better rolling file appenders. 2. in the log4j api find patternlayout. it has very good documentation. d Used to output the date of the logging event. The date conversion specifier may be followed by a date format specifier enclosed between braces. For

RE: tomcat and log4j, again

2003-07-03 Thread Shapira, Yoav
Howdy, I am not explicitly initializing log4j. A class that I am using in my app invokes logging as follows: package fermataintl.migrasponder.common; import java.sql.*; import org.apache.log4j.*; public class Vendor { ... logger.warn(attempt to authenticate ' + id + ' failed); ...

Re: tomcat and log4j, again

2003-07-03 Thread Vladimer Shioshvili
PS. WRAX press' Tomcat book has a section on Log4J. Pretty simple, 20 pages tops, but it will get you started. If you can get a handle of that, of course. At 12:54 PM 7/3/2003, you wrote: OK, with my current configuration, I *am* seeing output in catalina.out. However, its not formatted the way

Re: tomcat and log4j, again

2003-07-03 Thread Dean A. Hoover
Shapira, Yoav wrote: Howdy, I am not explicitly initializing log4j. A class that I am using in my app invokes logging as follows: package fermataintl.migrasponder.common; import java.sql.*; import org.apache.log4j.*; public class Vendor { ... logger.warn(attempt to authenticate ' + id + '

Re: tomcat and log4j, again

2003-07-03 Thread Dean A. Hoover
Shapira, Yoav wrote: Howdy, This is what I changed log4.properties to: log4j.logger.fermataintl.migrasponder=DEBUG, l1 log4j.appender.l1=org.apache.log4j.FileAppender log4j.appender.l1.File=/tmp/migrasponder log4j.appender.l1.layout=org.apache.log4j.PatternLayout

RE: tomcat and log4j, again

2003-07-03 Thread Shapira, Yoav
Howdy, OK, here goes. I shutdown tomcat, removed catalina.out, and restarted. Here it is: snip 4932 [main] ERROR digester.Digester - Parse Error at line 37 column 11: The content of element type web-app must match (icon?,display-name?,description?,distributable?,context-

RE: tomcat and log4j, again

2003-07-03 Thread Scott Burns
Following the discussion on this topic. I am working on using the log4j taglib for the presentation layer( jsps) I also am not seeing anything in caltalina.out nor am not seeing a file being created. Any suggestions? # Sample properties to initialise log4j^M log4j.debug=true^M

Re: tomcat and log4j, again

2003-07-03 Thread Ceki Gülcü
At 12:54 PM 7/3/2003 -0400, Dean A. Hoover wrote: PS. I looked for the commercial manual (on the website) at 2 local bookstores and on amazon.com. Nobody has it. I hesitate to order from Switzerland, as I am in the US. How long would that take... You can The complete log4j manual in the US from

Re: tomcat and log4j, again

2003-07-03 Thread Ceki Gülcü
My suggestion would be to start tomcat and set the log4j.debug property to true. The extra command line argument is -Dlog4j.debug=true This should show which configuration file log4j load if it loads one at all. If your config file is found, you should also see log4j parsing it. BTW, your

Re: tomcat and log4j, again

2003-07-03 Thread Dean A. Hoover
Ceki Gülcü wrote: My suggestion would be to start tomcat and set the log4j.debug property to true. OK, did it: log4j.debug=true log4j.logger.fermataintl.migrasponder=DEBUG, l1 log4j.appender.l1=org.apache.log4j.FileAppender log4j.appender.l1.File=/tmp/migrasponder

RE: tomcat and log4j, again

2003-07-03 Thread Paul Smith
: Re: tomcat and log4j, again Ceki Gülcü wrote: My suggestion would be to start tomcat and set the log4j.debug property to true. OK, did it: log4j.debug=true log4j.logger.fermataintl.migrasponder=DEBUG, l1 log4j.appender.l1=org.apache.log4j.FileAppender log4j.appender.l1.File

RE: tomcat and log4j, again

2003-07-03 Thread Ceki Gülcü
At 08:40 AM 7/4/2003 +1000, you wrote: Mmmm, for some reason it is using all the right class loaders to attempt to find the log4j.xml file, but it only uses 1 different methods to try to find log4j.properties. That is odd. Is this a Tomcat 4.1 specific class loader issue? That's probably a

Re: tomcat and log4j, again

2003-07-03 Thread Ceki Gülcü
Do you have a copy of the log4j.jar file other than the WEB_INF/lib directory of your web-app? Do you have it in the classpath? In the JVM extensions directory? By the way, tomcat is not starting properly which means that your web-app will also not start but you get log4j messages which mean

Re: tomcat and log4j, again

2003-07-03 Thread Dean A. Hoover
Ceki Gülcü wrote: At 08:40 AM 7/4/2003 +1000, you wrote: Mmmm, for some reason it is using all the right class loaders to attempt to find the log4j.xml file, but it only uses 1 different methods to try to find log4j.properties. That is odd. Is this a Tomcat 4.1 specific class loader issue?

Re: tomcat and log4j, again

2003-07-03 Thread Dean A. Hoover
Ceki Gülcü wrote: Do you have a copy of the log4j.jar file other than the WEB_INF/lib directory of your web-app? I did a find on *log*.jar and found the following: /usr/java/j2sdk1.4.1_02/jre/lib/ext/log4j-1.2.8.jar /usr/java/jakarta-tomcat-4.1.24/server/lib/commons-logging.jar

RE: TOMCAT and LOG4J

2002-10-21 Thread Ceki Gülcü
At 10:46 21.10.2002 +0200, you wrote: Hi all: I'm using Tomcat, log4j and org.apache.xml.security library. I use a log4j.properties file to config the logging features. It works fine until I iniritialize the org.apache.xml.security library. It seems that this library has a NullApender that

RE: TOMCAT and LOG4J

2002-10-21 Thread Evaristo-Jose Camarero (ECE)
, Evaristo -Original Message- From: Evaristo-Jose Camarero (ECE) [mailto:Evaristo-Jose.Camarero;ece.ericsson.se] Sent: Friday, October 18, 2002 1:55 PM To: 'Log4J Users List' Subject: RE: TOMCAT and LOG4J Hi all: It seems that problem is related with use between Log4j

RE: TOMCAT and LOG4J

2002-10-18 Thread Evaristo-Jose Camarero (ECE)
and regards, Evaristo -Original Message- From: sunita desai [mailto:sudesai;cisco.com] Sent: Friday, October 18, 2002 9:44 AM To: Log4J Users List Subject: RE: TOMCAT and LOG4J Hi, Try adding the layout and ConversionPAttern something like like below to your properties file

RE: TOMCAT and LOG4J

2002-10-18 Thread sunita desai
] Sent: Friday, October 18, 2002 1:37 PM To: 'Log4J Users List' Subject: RE: TOMCAT and LOG4J Hi Sunita and all: I have tried it but it doesn't work. What I see, is that the log file is created, but no log is put inside... It could be related with this: Is it needed to put the log4j_1.2.5.jar

RE: TOMCAT and LOG4J

2002-10-18 Thread Evaristo-Jose Camarero (ECE)
of log4j.properties. Any clue? Regards, Evaristo -Original Message- From: sunita desai [mailto:sudesai;cisco.com] Sent: Friday, October 18, 2002 10:16 AM To: Log4J Users List Subject: RE: TOMCAT and LOG4J HI, SOrry I did not try your earlier mail properly. YEs you need the put

RE: Tomcat and Log4j

2001-07-24 Thread Carolyn Wasikowski
Set the File property in your property file. You can use ${tomcat.home} to refer to the system property set by the Tomcat start-up scripts. For example: log4j.appender.LogFile.File=${tomcat.home}/logs/MyApp.log -JC [EMAIL PROTECTED] http://www.roguewave.com -Original Message-

RE: tomcat and log4j

2001-07-20 Thread altuga
To: LOG4J Users Mailing List Subject: Re: tomcat and log4j If one wishes different web apps to pick up different log4j.properties files then 1) Do not set anything log4j related in the TOMCAT_OPTS 2) Do not have the log4j.jar anywhere but as specified in step 3. 3) put log4j.jar into each web apps WEB

RE: tomcat and log4j

2001-07-20 Thread Robert Leftwich
At 05:14 PM 20/07/2001, [EMAIL PROTECTED] wrote: thanks for the answers .. if i decide to use only one log4j.properties with tomcat , where can i put this log4j.properties file and how can i use logging system in my beans ? in every bean's method i have to set like that

Re: tomcat and log4j

2001-07-19 Thread Ceki Gülcü
That should not be the case. Different webapps should be loaded by different classloaders resulting in parallel configurations of log4j. At 16:48 19.07.2001 +0300, you wrote: Hi all i have got tomcat and log4j entegration problem .. first of all i defined TOMCAT_OPTS =

Re: tomcat and log4j

2001-07-19 Thread William Jaynes
, 2001 2:43 PM Subject: Re: tomcat and log4j That should not be the case. Different webapps should be loaded by different classloaders resulting in parallel configurations of log4j. At 16:48 19.07.2001 +0300, you wrote: Hi all i have got tomcat and log4j entegration problem .. first of all i

Re: tomcat and log4j

2001-05-07 Thread Dominique JOCAL
PROTECTED] To: LOG4J Users Mailing List [EMAIL PROTECTED] Sent: Monday, May 07, 2001 2:05 PM Subject: Re: tomcat and log4j 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

Re: tomcat and log4j

2001-05-07 Thread William Jaynes
Subject: Re: tomcat and log4j 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

Now java error loggin Re: tomcat and log4j

2001-05-07 Thread SCOTT FARQUHAR
: Dominique JOCAL [EMAIL PROTECTED] To: LOG4J Users Mailing List [EMAIL PROTECTED] Sent: Monday, May 07, 2001 8:15 AM Subject: Re: tomcat and log4j 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