Log4J and Tomcat 4 - Newbie

2002-04-01 Thread Sathiskumar Govindasamy
Hello, I am very new to both Tomcat4 and Log4J. I have been using apache-jserv for a very long time and finally decided to jump into Tomcat. I found tomcat doing the System.err logging to catalina.out file in /vat/tomcat4/logs directory. I would like to leave whatever tomcat4 does as it is.

RE: Jonas 2.4.4 and log4j 1.2beta incompatibility

2002-04-01 Thread William.Settle
Ray, It is a shame that Jonas does not provide an application classloader property like some of the other app servers we use. That would definitely take care of the problem. I wrapped log4j 1.2 beta so it looks like I may have to backtrack and rewrite my log4j extensions and wrapper to use the

RE: Jonas 2.4.4 and log4j 1.2beta incompatibility

2002-04-01 Thread William.Settle
Ceki, We posted the symptom last Friday on the Jonas forum but no one seems to have run into the problem at this point. I will post the "changes between log4j..." you included to the Jonas group and see what kind of response I get and let you know. Thanks for the reply, Bill -Original Mess

Re: Making the log4j library optional

2002-04-01 Thread David Thielen
worked - thanks - dave - Original Message - From: "Ceki Gülcü" <[EMAIL PROTECTED]> To: "Log4J Users List" <[EMAIL PROTECTED]>; "Log4J Users List" <[EMAIL PROTECTED]> Sent: Monday, April 01, 2002 3:03 PM Subject: Re: Making the log4j library optional Dave, My proposed solution is to i

Re: Making the log4j library optional

2002-04-01 Thread Ceki Gülcü
Dave, My proposed solution is to introduce a method such as the following in your library: void disableWinWardLogging() { if(winWardLoggingEnabled) return; Category cat = Category.getInstance("net.winward"); cat.setPriority(Priority.FATAL); // In log4j 1.2 // Logger logge

Re: Jonas 2.4.4 and log4j 1.2beta incompatibility

2002-04-01 Thread Ray Thomas
The new version of the Servlet spec provides for Classloader differentiation between versioned jars (as a result of similar conflicts between the XML parser included in most servlet engines and different parsers included in web applications.) See the "Rules for class loading" section of http://dev

Re: Jonas 2.4.4 and log4j 1.2beta incompatibility

2002-04-01 Thread Ceki Gülcü
Hello William, Changes between log4j version 1.1.x and 1.2 Log4j version 1.2 introduced many changes. In most cases, it can be considered as a drop in replacement for log4j version 1.1.x. This section discusses the changes and backward compatibility issues. Logger replaces Category

Re: Default XML file?

2002-04-01 Thread Ray Thomas
Yes. This answers my question. Given that 1.2 is still beta, I guess this means it'll be a while before this is released in 1.3. Oh well... :( -R - Original Message - From: "Ceki Gülcü" <[EMAIL PROTECTED]> To: "Log4J Users List" <[EMAIL PROTECTED]> Sent: Monday, April 01, 2002 2:33 PM

Re: Default initialization question

2002-04-01 Thread Ceki Gülcü
Rick, You can place the log4j.properties file in any *directory* that is included in the CLASSPATH. Log4j will automatically find it and configure itself. Under a web container environment, I suggest that you place log4j.jar under WEB-INF/lib/ and the configuration script (log4j.properties) unde

Re: Default XML file?

2002-04-01 Thread Ceki Gülcü
In log4j 1.3, log4j will first search for log4j.xml and second for log4j.properties unless the log4j.configuration system property was specified by the user. Does that answer your request? At 12:14 01.04.2002 -0700, Ray Thomas wrote: >I know log4j finds log4j.properties automatically if it is

Jonas 2.4.4 and log4j 1.2beta incompatibility

2002-04-01 Thread William.Settle
We downloaded the latest version of Jonas 2.4.4 that uses log4j v1.0.4 set of API's. We are using the log4j 1.2 beta exclusively and when I put the log4j 1.2 beta jar file in front of the class path, Jonas throws a java.lang.NoSuchMethodError at org.objectweb.monolog.wrapper.log4j.MonologCategory

Default XML file?

2002-04-01 Thread Ray Thomas
I know log4j finds log4j.properties automatically if it is placed in the classpath. Is there any "default" xml config file or does xml based configuration always require -Dlog4j.configuration=whatever.xml to be specified when the JVM starts? (Command line length is already an issue with other suc

Hostname Affinity for Logger Config

2002-04-01 Thread Ray Thomas
If this is not the appropriate forum to which feature requests should be submitted, I apologize. Someone please let me know if this should be submitted in a different forum. Using log4j is certainly more convenient than System.out or System.err but I haven't found a way to configure it once for

RE: Hostname Affinity for Logger Config

2002-04-01 Thread Morris, Rick
You could use Ant to build your applications and then filter the configuration files using the FilterToken task. There's a good example in the Ant documentation. Find Ant at the Apache Jakarta project http://jakarta.apache.org -Original Message- From: Ray Thomas [mailto:[EMAIL PROTECTED

RE: Hostname Affinity for Logger Config

2002-04-01 Thread Jim Tyrrell
I to am looking for something like this. I would want it to discover at runtime the server it is running on and just magically dump the output from that server into one log directory that is the home for all logs. Example: homeOfAllLogs/MachineName/logFiles. Thank you Jim Tyrrell -Orig

Hostname Affinity for Logger Config

2002-04-01 Thread Ray Thomas
If this is not the appropriate forum to which feature requests should be submitted, I apologize. Someone please let me know if this should be submitted in a different forum. Using log4j is certainly more convenient than System.out or System.err but I haven't found a way to configure it once for

Distributed Logging/MDC Usage Question

2002-04-01 Thread Marish . Hirapara
I am using JMS (using a modified JMSAppender) to do some distributed logging (log from different servlets (resin) to a message-driven bean on a weblogic box). I am passing the loggingEvent object to the message-driven bean in order to have access to the stack trace, timestamp, etc. I am also tryin

RE: Making the log4j library optional

2002-04-01 Thread Mark Womack
Adam, You only need to pass in a custom FQCN (fully-qualified class name) when you subclass or wrap the Category/Logger class. There is no setter method that I am aware of, but the log() and forcedLog() methods will take it as a parameter. Such a method might be nice, but since it is only reall

RE: Problem specifying the properties file path in PropertyConfig urat or

2002-04-01 Thread Swami Iyer
If you want to use backward slash you can escape it but the forward slash "/projects/util/log4jProps.lcf" should have worked. We are using it in our servlet. Remember if any of your system (development or production) is UNIX then the file name is case sensitive. Thanks, Swami > -Original Me

RE: Problem specifying the properties file path inPropertyConfig urat or

2002-04-01 Thread Nair, Ranjini
Swami, I've tried both ways. Both don't seem to work. The first one still fails to initialize and I cannot use \projects\util\log4jProps.lcf as the compiler complains about invalid escape characters. Thanks, Ranjini. > -Original Message- > From: Swami Iyer [SMTP:[EMAIL PROTECTED]] > Sen

RE: Problem specifying the properties file path inPropertyConfig urat or

2002-04-01 Thread Nair, Ranjini
Rick, The initialization from the servlet works well, except for the depency on the drive. Ranjini. > -Original Message- > From: Morris, Rick [SMTP:[EMAIL PROTECTED]] > Sent: Monday, April 01, 2002 11:05 AM > To: 'Log4J Users List' > Subject: RE: Problem specifying the propert

RE: Problem specifying the properties file path in PropertyConfigurat or

2002-04-01 Thread Swami Iyer
You are specifing the file in the URI format and that's why the drive is necessary. All it requires is the relative path, you can try /projects/util/log4jProps.lcf or \projects\util\log4jProps.lcf and it should work. Swami > -Original Message- > From: Nair, Ranjini [mailto:[EMAIL PROTECT

RE: Problem specifying the properties file path in PropertyConfigurat or

2002-04-01 Thread Morris, Rick
There's a good example of using an initialization servlet in the documentation. It works well -Original Message- From: Nair, Ranjini [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 10:53 AM To: '[EMAIL PROTECTED]' Subject: Problem specifying the properties file path in PropertyCon

Problem specifying the properties file path inPropertyConfigurat or

2002-04-01 Thread Nair, Ranjini
Hi All, I am having problems specifying the path for the properties file in PropertyConfigurator.configureAndWatch(). I'm using log4j1.1.3 and am initilizing log4j in the servlet. I'm calling this method as, PropertyConfigurator.configureAndWatch("\\projects\util\log4jProps.lcf", 5000). I find

RE: Bug??

2002-04-01 Thread Collier, Mike
I think you need to set the additivity flag. Take a look at the JavaDoc for Category. -Original Message- From: Dharanendra S. Pandit [mailto:[EMAIL PROTECTED]] Sent: Monday, April 01, 2002 7:28 AM To: [EMAIL PROTECTED] Subject: Bug?? Hi *.*, I'm facing a strange problem. I ha

RE: Doubt

2002-04-01 Thread Collier, Mike
I do not believe there is a way to specify a ConversionPattern for HTMLLayout. The only options available in HTMLLayout are "LocationInfo" and "Title". The layout of HTMLLayout is specified in the format(LoggingEvent) method of HTMLLayout. -Original Message- From: Dharanendra S

Bug??

2002-04-01 Thread Dharanendra S. Pandit
Hi *.*, I'm facing a strange problem. I have specified the following properties in configuration file. log4j.rootCategory=stdout, file log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout log4j.appender.stdout.layout.ConversionPatt