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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
27 matches
Mail list logo