I did (see following updated file) and still no log file. Also,
I am deploying using ant. Once I get this working, I don't
really have to restart all of tomcat, do I?
log4j.debug=true
log4j.rootLogger=DEBUG, roll
log4j.appender.roll=org.apache.log4j.RollingFileAppender
Did you see any log4j output on the console? BTW, the console is redirected
by tomcat.
At 03:15 AM 7/3/2003 -0400, Dean A. Hoover wrote:
I did (see following updated file) and still no log file. Also,
I am deploying using ant. Once I get this working, I don't
really have to restart all of
What console ? I am running linux. How do I see a console?
Ceki Gülcü wrote:
Did you see any log4j output on the console? BTW, the console is
redirected by tomcat.
At 03:15 AM 7/3/2003 -0400, Dean A. Hoover wrote:
I did (see following updated file) and still no log file. Also,
I am deploying
There's a console appender, which will output log information to the
console.
If you are running it in linux, you could output the console information to
a file.
Best Regards.
Xi Yuxiang
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: 200373 15:22
To: Log4J
Tail -f ${Catalina.home}/logs/Catalina.out
-Original Message-
From: Dean A. Hoover [mailto:[EMAIL PROTECTED]
Sent: July 3, 2003 3:22 AM
To: Log4J Users List
Subject: Re: can't get log4j under tomcat working
What console ? I am running linux. How do I see a console?
Ceki Gülcü wrote:
OK, with my current configuration, I *am* seeing
output in catalina.out. However, its not formatted
the way I (think I) told it to. Also, I would
prefer to have the output go to a separate log
file, as there is just too much stuff in catalina.out
to wade through.
Anyway, I am using RH9,
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
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);
...
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
I use Log4j behind Commons Logging in a Struts app running under Tomcat.
I'm happy with everything except one minor irritation when I deploy a new
version of my webapp.
In log4j.properties, I have:
# Configure the name of the logout for the daily appender
# default location when used with Tomcat
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 + '
I ran into this just this morning. Why not use a variable for the File
attribute? Something like this:
log4j.appender.daily.File=${catalina.home}/logs/bentest.log
Or even better, for maximum portability:
log4j.appender.daily.File=${catalina.home}{$file.separator}logs{$file.separa
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
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-
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
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
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
I received my copy in about a week. I have waited longer from some us
vendors actually... The service was quite prompt. And the book is very
useful and well written. Two thumbs up
Scott
-
To unsubscribe, e-mail: [EMAIL
Thanks.
I already told Ceki my opinion about log4j (I think it is
really great and I
love it). I would gladly check the file in jakarta-log4j and
tell you if it
solves my problem or any other feedback I have. However, I
have to admit
that I don't know how to find it.
I never
Scott,
Thank you for your vote of confidence.
In 99+ percent of cases, the packages we send arrive to destination in
a timely fashion. If you stop to think about it, it is a remarkable
technological feat by the post offices of the countries involved. We
drop a package at our local post office in
It sometimes takes nearly a week for a small piece of mail (i.e a letter) to
get from Sydney to Melbourne (comparable from LA-San Fran). I also had a
DHL package tracked via the web that spent more time in Sydney than it did
travelling from Amazon in Seattle through to Sydney PLUS the time taken
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
Yoav wrote:
Another approach is to use an environment variable, e.g.
log4j.appender.blah.File=$CATALINA_HOME/logs/myFile.txt
I have:
log4j.appender.daily.File=$CATALINA_HOME/logs/bentest.log
This isn't working. I have CATALINA_HOME set [on Windows]
g:\irm\sharedsource\benwebecho
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?
What about trying converting your log4j.properties file into
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
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
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?
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
28 matches
Mail list logo