Re: Log4j vs JULI configuration discrepancy

2009-08-12 Thread Eric B.
Mark Thomas ma...@apache.org wrote in message news:4a7c9110.50...@apache.org... Eric B. wrote: Is there a workaround for this, or just one of those things that you have to learn to live with? In catalina.properties, modify the following entry as shown:

Re: Log4j vs JULI configuration discrepancy

2009-08-11 Thread Eric B.
/log4j.xml. I was having trouble with getting the log4j.properties to mirror the logging.properties, so I swtiched to log4j.xml, but am running into the same problem: My webapp uses log4j to log data to stdout. When using Juli (in the default configuration), everything that is displayed in stdout

Re: Log4j vs JULI configuration discrepancy

2009-08-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Eric, On 8/11/2009 5:25 PM, Eric B. wrote: My webapp uses log4j to log data to stdout. When using Juli (in the default configuration), everything that is displayed in stdout is logged to catalina.out. However, when I switch to log4j

Re: Log4j vs JULI configuration discrepancy

2009-08-11 Thread Eric B.
Christopher Schultz ch...@christopherschultz.net wrote in message news:4a8223c7.1030...@christopherschultz.net... My webapp uses log4j to log data to stdout. When using Juli (in the default configuration), everything that is displayed in stdout is logged to catalina.out. However, when I

RE: Log4j vs JULI configuration discrepancy

2009-08-11 Thread Caldarale, Charles R
From: news [mailto:n...@ger.gmane.org] On Behalf Of Eric B. Subject: Re: Log4j vs JULI configuration discrepancy I don't understand why when using Juli anything that webapp's log4j logs to Stdout gets logged to a file, however, when using log4j with tomcat this behaviour isn't replicated

Log4j vs JULI configuration discrepancy

2009-08-07 Thread Eric B.
Hi, I'm not sure if there is anything that can be done about this, but I just tried switching from Tomcat's standard JULI logging to Log4j implementation following the docs at http://tomcat.apache.org/tomcat-6.0-doc/logging.html. Overall, everything works as expected, although I found one

Re: Log4j vs JULI configuration discrepancy

2009-08-07 Thread Mark Thomas
Eric B. wrote: Hi, I'm not sure if there is anything that can be done about this, but I just tried switching from Tomcat's standard JULI logging to Log4j implementation following the docs at http://tomcat.apache.org/tomcat-6.0-doc/logging.html. Overall, everything works as expected

Re: Log4j vs JULI configuration discrepancy

2009-08-07 Thread Eric B.
Mark Thomas ma...@apache.org wrote in message news:4a7c9110.50...@apache.org... Eric B. wrote: Hi, In JULI, the logging.properties file can be place in ${catalina.base}/conf/logging.properties, whereas Log4j expects it in ${catalina.home}/lib/log4j.properties. I am assuming

Re: Seeking authoritative answer re using Log4J with v6

2009-07-07 Thread Jonathan Ross
Sorry for the delay, had a few vacation days. I ran some tests to verify Log4J config at webapp vs server level and had these additional observations: The log4j.properties file in CATALINA_HOME/lib is still used for initialization unless overridden in the default locations (log4j.properties

Re: log4j w/apache

2009-07-02 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chris, On 6/25/2009 8:54 AM, Christopher Piggott wrote: log4j.logger.org.apache.commons.digester.Digester=WARN, nowhere log4j.logger.org.apache.commons.digester.Digester.sax=WARN, nowhere Strictly speaking, it doesn't matter what level (e.g. WARN)

Tomcat 6.0.18 Virtual Hosting and Log4J

2009-06-30 Thread Dhaval Patel
Hello all, I have virtual hosting enabled in tomcat 6.0.18. But I can not forward logs into proper log files. I wants to have two log files, one for tomcat and one for virtual host. Following is my configuration: Server.xml -- Host name=a.localhost

Re: Tomcat 6.0.18 Virtual Hosting and Log4J

2009-06-30 Thread Daniel Henrique Alves Lima
Hi, Dhaval. Unless you have added log4j support, i think tomcat 6 installation use java4 log as default log engine. Could this be the problem ? Have you tried to change conf/logging.properties ? Another components (using commons logging for instance) can be using

Re: Tomcat 6.0.18 Virtual Hosting and Log4J

2009-06-30 Thread Daniel Henrique Alves Lima
In older tomcat versions, log4j was the default log engine. On Tue, 2009-06-30 at 17:38 -0300, Daniel Henrique Alves Lima wrote: Hi, Dhaval. Unless you have added log4j support, i think tomcat 6 installation use java4 log as default log engine. Could this be the problem

RE: Seeking authoritative answer re using Log4J with v6

2009-06-29 Thread Caldarale, Charles R
From: Caldarale, Charles R Subject: RE: Seeking authoritative answer re using Log4J with v6 Are you sure you followed all of the steps on the logging page with a clean Tomcat install? I will try again from scratch, and report back. Did a clean install of Win 7, JDK 6u14, ant 1.7.1

RE: Seeking authoritative answer re using Log4J with v6

2009-06-29 Thread Mike Frohme
This also worked correctly (as documented) for me with 6.0.20 - with the build of extras and log4j off the SVN trunk (patches for certain property handling due out in 1.2.16) -- Mike -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Friday, June 26, 2009 4:01 PM

RE: Seeking authoritative answer re using Log4J with v6

2009-06-28 Thread Caldarale, Charles R
From: Mark Thomas [mailto:ma...@apache.org] Subject: Re: Seeking authoritative answer re using Log4J with v6 Are you sure you followed all of the steps on the logging page with a clean Tomcat install? I will try again from scratch, and report back. - Chuck THIS COMMUNICATION MAY CONTAIN

Re: Seeking authoritative answer re using Log4J with v6

2009-06-28 Thread Jonathan Ross
Thanks, this worked. I downloaded tomcat-juli.jar from http://archive.apache.org/dist/tomcat/tomcat-6/v6.0.18/bin/extras/, replaced my build with it, and now have log4j at the server level. (I still need to very the classloader order prefers log4j.jar in a webapp.) Mark Thomas-18 wrote

Re: Seeking authoritative answer re using Log4J with v6

2009-06-27 Thread Mark Thomas
Caldarale, Charles R wrote: From: Mark Thomas [mailto:ma...@apache.org] Subject: Re: Seeking authoritative answer re using Log4J with v6 It looks very much like your build environment is broken. I just duplicated Jonathan's findings on my Vista box. There are several things broken

Re: Seeking authoritative answer re using Log4J with v6

2009-06-27 Thread Mark Thomas
Caldarale, Charles R wrote: From: Mark Thomas [mailto:ma...@apache.org] Subject: Re: Seeking authoritative answer re using Log4J with v6 I have checked recently (with 6.0.18) and it worked as expected and documented. So why was it necessary for Suresh to place his log handler on Tomcat's

Seeking authoritative answer re using Log4J with v6

2009-06-26 Thread Jonathan Ross
I'd like to use Log4J at the server level, but following the http://tomcat.apache.org/tomcat-6.0-doc/logging.html instructions at apache.org doesn't seeem to work with 6.0.18. 1) Rebuilding tomcat-juli.jar using extras.xml doesn't include an adapter for Log4J. The build file lists org/apache

RE: Seeking authoritative answer re using Log4J with v6

2009-06-26 Thread Caldarale, Charles R
From: Jonathan Ross [mailto:jonr...@alum.mit.edu] Subject: Seeking authoritative answer re using Log4J with v6 if log4j.jar is placed in catalina.home/lib per instructions, it's not on the system classpath, which is used by bootstrap.jar. A recent posting by Mark T indicates the doc might

RE: Seeking authoritative answer re using Log4J with v6

2009-06-26 Thread Jonathan Ross
classloader is requested. Note that in order to get individual use of log4j by a webapp, each must have its own log4j.jar and log4j.properties. According to the http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html classloader howto , the order is: system classloader, webapp classloader

RE: Seeking authoritative answer re using Log4J with v6

2009-06-26 Thread Caldarale, Charles R
From: Jonathan Ross [mailto:jonr...@alum.mit.edu] Subject: RE: Seeking authoritative answer re using Log4J with v6 According to the http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html classloader howto , the order is: system classloader, webapp classloader, common classloader

Re: Seeking authoritative answer re using Log4J with v6

2009-06-26 Thread Mark Thomas
Caldarale, Charles R wrote: From: Jonathan Ross [mailto:jonr...@alum.mit.edu] Subject: Seeking authoritative answer re using Log4J with v6 if log4j.jar is placed in catalina.home/lib per instructions, it's not on the system classpath, which is used by bootstrap.jar. A recent posting

Re: Seeking authoritative answer re using Log4J with v6

2009-06-26 Thread Mark Thomas
Mark Thomas wrote: Caldarale, Charles R wrote: From: Jonathan Ross [mailto:jonr...@alum.mit.edu] Subject: Seeking authoritative answer re using Log4J with v6 if log4j.jar is placed in catalina.home/lib per instructions, it's not on the system classpath, which is used by bootstrap.jar

RE: Seeking authoritative answer re using Log4J with v6

2009-06-26 Thread Caldarale, Charles R
From: Mark Thomas [mailto:ma...@apache.org] Subject: Re: Seeking authoritative answer re using Log4J with v6 It looks very much like your build environment is broken. I just duplicated Jonathan's findings on my Vista box. There are several things broken, but the build environment doesn't

RE: Seeking authoritative answer re using Log4J with v6

2009-06-26 Thread Caldarale, Charles R
From: Mark Thomas [mailto:ma...@apache.org] Subject: Re: Seeking authoritative answer re using Log4J with v6 I have checked recently (with 6.0.18) and it worked as expected and documented. So why was it necessary for Suresh to place his log handler on Tomcat's startup classpath

Re: log4j w/apache

2009-06-25 Thread Christopher Piggott
This is described here: http://www.mail-archive.com/log4j-u...@logging.apache.org/msg10697.html If you truly want them to go nowhere you can do this: log4j.logger.org.apache.commons.digester.Digester=WARN, nowhere log4j.logger.org.apache.commons.digester.Digester.sax=WARN, nowhere

log4j w/apache

2009-06-24 Thread cpanon
Hello Newbie on ussing log4j and now that I have a simplistic log4j configuration file I am seeing ALL of the apache all from org.apache.commons.digester.Digester or org.apache.commons.digester.Digester.sax.  How can I stop that but still keep a simple or reconfigure my log4j.properties?  tia.

Regarding log4J creating logs in tomcat logs folder using FileAppender

2009-06-22 Thread abhishek reddy
hi every one, Iam new to Log4j... How to create log files in tomcat logs folder using Apache Log4j FileAppender class? This is what i was doing new FileAppender(layout,todayslog,true); but the log files are created under tomcat bin folder...how t change this? Also let me know

RE: Regarding log4J creating logs in tomcat logs folder using FileAppender

2009-06-22 Thread Caldarale, Charles R
From: abhishek reddy [mailto:abhishek.c1...@gmail.com] Subject: Regarding log4J creating logs in tomcat logs folder using FileAppender but the log files are created under tomcat bin folder Because you're using a relative path, which should be avoided, since you have no control over

RE: Regarding log4J creating logs in tomcat logs folder using FileAppender

2009-06-22 Thread Caldarale, Charles R
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Subject: RE: Regarding log4J creating logs in tomcat logs folder using FileAppender but the log files are created under tomcat bin folder Because you're using a relative path, which should be avoided, since you have

Re: Regarding log4J creating logs in tomcat logs folder using FileAppender

2009-06-22 Thread abhishek reddy
...@gmail.com] Subject: Regarding log4J creating logs in tomcat logs folder using FileAppender but the log files are created under tomcat bin folder Because you're using a relative path, which should be avoided, since you have no control over it. You can retrieve the Tomcat base path from

Re: Regarding log4J creating logs in tomcat logs folder using FileAppender

2009-06-22 Thread abhishek reddy
at 6:25 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: abhishek reddy [mailto:abhishek.c1...@gmail.com] Subject: Regarding log4J creating logs in tomcat logs folder using FileAppender but the log files are created under tomcat bin folder Because you're using

Re: Regarding log4J creating logs in tomcat logs folder using FileAppender

2009-06-22 Thread abhishek reddy
base path? I have tried this way System.getProperty(tomcat.base);the value is comming as null On Mon, Jun 22, 2009 at 6:25 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: abhishek reddy [mailto:abhishek.c1...@gmail.com] Subject: Regarding log4J creating

RE: Regarding log4J creating logs in tomcat logs folder using FileAppender

2009-06-22 Thread Caldarale, Charles R
From: abhishek reddy [mailto:abhishek.c1...@gmail.com] Subject: Re: Regarding log4J creating logs in tomcat logs folder using FileAppender i think it is catalina.base Yes, sorry for the earlier misdirect. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY

RE: Why do stacktraces from servlets print to stdout, when the other end up in the log4j -log file?

2009-06-10 Thread Imner, Andreas
) { t.printStackTrace(); } } If we run the webapp in Weblogic, both the Exception while handling... message and the stacktrace gets printed to the log file specified by log4j If we run exactly the same webapp in Tomcat, the Exception

Re: Why do stacktraces from servlets print to stdout, when the other end up in the log4j -log file?

2009-06-10 Thread André Warnier
Imner, Andreas wrote: ... Hi. I do not know the answer, but I am sure that if you would like some answers from the experts on this list, it would not hurt to add some information like : - the version of this Tomcat - where you got it from : is it a standard Tomcat from the Tomcat website, or

SV: Why do stacktraces from servlets print to stdout, when the other end up in the log4j -log file?

2009-06-10 Thread Imner, Andreas
juni 2009 11:09 Till: Tomcat Users List Ämne: RE: Why do stacktraces from servlets print to stdout, when the other end up in the log4j -log file? Hi The Servlet does not propegate the error. This perticular servlet is one we use for handling unhandled exceptions and displaying an unexpected-error

Why do stacktraces from servlets print to stdout, when the other end up in the log4j -log file?

2009-06-09 Thread Imner, Andreas
My companys web application uses log4j 1.2.8 for logging and have just recently switched from Weblogic to Tomcat 6.0.18. Since the we switched to Tomcat, when we do some logging within a servlet private static final Log log = LogFactory.getLog(ExceptionHandlerServlet.class); log.error(some

Re: Why do stacktraces from servlets print to stdout, when the other end up in the log4j -log file?

2009-06-09 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andreas, On 6/9/2009 3:31 PM, Imner, Andreas wrote: My companys web application uses log4j 1.2.8 for logging and have just recently switched from Weblogic to Tomcat 6.0.18. Since the we switched to Tomcat, when we do some logging within

Re: Slightly OT: log4j - generic log4j.dtd

2009-05-01 Thread Gregor Schneider
our Tomcats are also using log4j instead of Juli. However, that's close to perfect when using all same Tomcat versions, but when mixing Tomcat 5.5 and Tomcat 6 on some boxes, this also doesn't work, since there's no such such as $CATALINA_HOME/common in Tomcat 6. Therefore my idea was to use a Java

Re: Slightly OT: log4j - generic log4j.dtd

2009-05-01 Thread André Warnier
Gregor Schneider wrote: since there's no such such as $CATALINA_HOME/common in Tomcat 6. You could always create one.. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail:

Re: Slightly OT: log4j - generic log4j.dtd

2009-05-01 Thread Christopher Schultz
as a Java-property to Tomcat and evaluate this property within log4j.xml, however, that does not seem to work: While this sounds like a great idea, I believe neither log4j nor your XML parser will choose to auto-replace ${foo} with the result of System.getProperty(foo). I'd think you'd have to do

Re: Slightly OT: log4j - generic log4j.dtd

2009-05-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gregor, On 4/30/2009 11:43 AM, Gregor Schneider wrote: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE log4j:configuration SYSTEM log4j.dtd Oh, one more thing: couldn't you just turn off XML validation and completely remove log4j.dtd? Are you sure it's

Slightly OT: log4j - generic log4j.dtd

2009-04-30 Thread Gregor Schneider
would like the idea of a cantral log4j-configuration-file. However, with log4j.dtd things are slightly different since it's always a file with the same content and I really dislike redundancies. So my idea was to use ${CATALINA_HOME}, pass this via -Dlog4j.dtd as a Java-property to Tomcat

Re: Slightly OT: log4j - generic log4j.dtd

2009-04-30 Thread André Warnier
Gregor Schneider wrote: ... André will not complain, but he has a suggestion : Considering the error message : java.net.MalformedURLException: no protocol: ${log4j.dtd} then either the ${log4j.dtd} does not get expanded as you expect, or else it does but the result is not a valid URL. So,

RE: Slightly OT: log4j - generic log4j.dtd

2009-04-30 Thread Peter Crowther
From: Gregor Schneider [mailto:rc4...@googlemail.com] Most of you may know the typical first lines of any log4j.xml-config-file: ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE log4j:configuration SYSTEM log4j.dtd Why does the DTD need to be stored relative to the XML file rather than (say)

Re: Slightly OT: log4j - generic log4j.dtd

2009-04-30 Thread Gregor
andre, it gets xpanded just perfect, but seems the file- protocol is not recognized. so u gotta work a bit more for the chocolate ;) cheers gregor Am 30.04.2009 um 18:13 schrieb André Warnier a...@ice-sa.com: Gregor Schneider wrote: ... André will not complain, but he has a suggestion :

Log4j doesn't output intended debug messages

2009-02-09 Thread nashrul
I try to do some logging with my two web apps (A and B). Each webapps has has its own log4j*.jar and log4j property file (log4j.xml and log4j-1.2.14.jar for webapp A and log4j.properties and log4j-1.2.15.jar for webapp B). I try to modify log4j.properties file in webapp B to output some debug

Re: Strange parser behavior from adding log4j

2009-01-10 Thread Ken Bowen
Mark, I checked out rev 733300 from /tomcat/tc6.0x/trunk, built it and the relase, and used an unzipped copy of apache-tomcat-6.0-snapshot. Unfortunately, the same error still happens when I start up my webapp: ERROR org.apache.commons.digester.Digester - Parse Error at line 405 column

RE: Strange parser behavior from adding log4j

2009-01-10 Thread Mark Thomas
From: Ken Bowen [mailto:kbo...@als.com] Mark, I checked out rev 733300 from /tomcat/tc6.0x/trunk, built it and the relase, and used an unzipped copy of apache-tomcat-6.0-snapshot. Unfortunately, the same error still happens when I start up my webapp: ERROR

RE: Strange parser behavior from adding log4j

2009-01-09 Thread Mark Thomas
From: Ken Bowen [mailto:kbo...@als.com] [Tomcat 6.0.18, java 1.5.0_16, struts 1.2.8] snip/ Has anyone any thoughts on what might be happening here? Could be a variation of https://issues.apache.org/bugzilla/show_bug.cgi?id=45933 Can you try testing with a build from trunk? Mark

Re: Strange parser behavior from adding log4j

2009-01-09 Thread Ken Bowen
Mark, I'm more than willing. Are there nightly jar builds, or do I need to set up do the build myself? (First time for this). Thanks Ken On Jan 9, 2009, at 5:17 AM, Mark Thomas wrote: Could be a variation of https://issues.apache.org/bugzilla/show_bug.cgi?id=45933 Can you try testing

Re: Tomcat 6 and log4j

2009-01-08 Thread Gregor Schneider
Hi Mark, On Thu, Jan 8, 2009 at 1:43 AM, Mark Thomas ma...@apache.org wrote: It is in bin/extras on all the mirrors. ok, that was what I was missing. The logging page coudl do with updating with that information and a browse option on the downoad page woudl help find it. I'll add those

Strange parser behavior from adding log4j

2009-01-08 Thread Ken Bowen
Hi all, [Tomcat 6.0.18, java 1.5.0_16, struts 1.2.8] I have a struts 1.2.8 app [I know, that's antediluvian] which has been running fine for some time. I'm now trying to add log4j logging to it. I am getting an extremely strange side-effect when I add a log4j.properties file to WEB-INF

Tomcat 6 and log4j

2009-01-07 Thread Gregor Schneider
Dear all, actually I like Tomcat. I like the Apache Group. Most docs are quite useful. However, things are changing slightly since I'm trying to implement log4j with Tomcat 6. I've got it nicely running on my boxes running Tomcat 5.5, btw. I started taking a look at the docs at http

RE: Tomcat 6 and log4j

2009-01-07 Thread Mark Thomas
From: Gregor Schneider [mailto:rc4...@googlemail.com] Ain't it just enough to copy commons-logging-1.1.jar do ${CATALINA_HOME}/lib, and that's it? No. And one suggestion: Why make it so difficult and have the user to do the build? Why not put the appropriate jars for download on the

Re: log4j

2008-12-30 Thread Christopher Schultz
ObjectName(log4j:logger=com.ifp.switch) ?? Otherwise, try asking on the log4j lists. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAklabUIACgkQ9CaO5/Lv0PDLNQCguE36Sp/RxKJ+r+2jGyqbnKcv

Tomcat 6, log4j and security manager

2008-12-29 Thread Korobitsyn Roman
Hello! I use Win XP JDK 1.5.0_13 Tomcat 6.0.16 Log4J 1.2.14 I set up logging as described on http://tomcat.apache.org/tomcat-6.0-doc/logging.html And it's all right? everything is workng fine. But when I start tomcat with security manager, I've got only: log4j:WARN No appenders could

Re: Tomcat 6, log4j and security manager

2008-12-29 Thread Kees de Kooter
It usually means that the log4j properties file cannot be found on the classpath. Kees On Mon, Dec 29, 2008 at 11:44, Korobitsyn Roman k...@dtnm.ru wrote: Hello! I use Win XP JDK 1.5.0_13 Tomcat 6.0.16 Log4J 1.2.14 I set up logging as described on http://tomcat.apache.org/tomcat

Re: Tomcat 6, log4j and security manager

2008-12-29 Thread Korobitsyn Roman
Hello Kees, And where should I put log4j.properties in that case? Roman KdK It usually means that the log4j properties file cannot be found on the KdK classpath. KdK Kees KdK On Mon, Dec 29, 2008 at 11:44, Korobitsyn Roman k...@dtnm.ru wrote: Hello! I use Win XP JDK 1.5.0_13 Tomcat

Re: Tomcat 6, log4j and security manager

2008-12-29 Thread Kees de Kooter
In WEB-INF/classes of your application. On Mon, Dec 29, 2008 at 12:37, Korobitsyn Roman k...@dtnm.ru wrote: Hello Kees, And where should I put log4j.properties in that case? Roman KdK It usually means that the log4j properties file cannot be found on the KdK classpath. KdK Kees

Re: log4j

2008-12-27 Thread Mohit Anchlia
This is a very good article. I just have one question. I don't have root logger and I use some other logger name. What should I pass in the ObjectName? Below is my log4j config: log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; debug=false appender name=SWITCH_LOG class

log4j

2008-12-21 Thread Mohit Anchlia
We use tomcat 6. Is it possible to expose log4j service in tomcat's jmx console manager? This will help dynamically setting log levels. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail

RE: log4j

2008-12-21 Thread Caldarale, Charles R
From: Mohit Anchlia [mailto:mohitanch...@gmail.com] Subject: log4j We use tomcat 6. Is it possible to expose log4j service in tomcat's jmx console manager? This will help dynamically setting log levels. GIYF: http://www.devx.com/Java/Article/32359/1954 - Chuck THIS COMMUNICATION MAY

RE: How to set Log4J debug flag in Tomcat

2008-12-11 Thread Prastein, Rebeccah H
I'll take a look, thanks. Rebeccah -Original Message- From: André Warnier [mailto:a...@ice-sa.com] Sent: Wednesday, December 10, 2008 4:51 PM To: Tomcat Users List Subject: Re: How to set Log4J debug flag in Tomcat Prastein, Rebeccah H wrote: How do I start tomcat as an application

How to set Log4J debug flag in Tomcat

2008-12-10 Thread Prastein, Rebeccah H
How do I start tomcat as an application (not a service) and set the log4j debug commandline parameter? I tried editing startup.bat to prepend -Dlog4j.debug to %CMD_LINE_ARGS%, but I get the following error on startup, and I don't see any log4j debug output: usage: java

Re: How to set Log4J debug flag in Tomcat

2008-12-10 Thread André Warnier
Prastein, Rebeccah H wrote: How do I start tomcat as an application (not a service) and set the log4j debug commandline parameter? I tried editing startup.bat to prepend -Dlog4j.debug to %CMD_LINE_ARGS%, but I get the following error on startup, and I don't see any log4j debug output: usage

RE: How to set Log4J debug flag in Tomcat

2008-12-10 Thread Martin Gainty
log4j.logger.org.apache.catalina.session=DEBUG, R Download Log4J (v1.2 or later) and place the log4j jar in $CATALINA_HOME/common/lib. Download Commons Logging and place the commons-logging-x.y.z.jar (not commons-logging-api-x.y.z.jar) in $CATALINA_HOME/common/lib

webapp deploy/undeploy log4j and other weirdnesses

2008-12-02 Thread Prastein, Rebeccah H
out with a problem of log4j not writing all of the log statements to my RollingFileAppender right away - like some sort of I/O blocking. If I log enough statements, eventually all of the accumulated ones write out, but it doesn't seem to be just a time-dependent thing (I may be wrong about

Re: [OT] log4j FileAppenders not flushing

2008-12-01 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rebeccah, Prastein, Rebeccah H wrote: I'm hoping someone here can help me with this; I've searched all over the web, and any references to FileAppenders not flushing in the log4j lists get the response, not a log4j problem, must be your

log4j FileAppenders not flushing

2008-11-25 Thread Prastein, Rebeccah H
I'm hoping someone here can help me with this; I've searched all over the web, and any references to FileAppenders not flushing in the log4j lists get the response, not a log4j problem, must be your application. I have a simple 3-page Spring 2.5 Spring MVC application running under Tomcat 5.5

Log4j Date/time logging

2008-08-19 Thread Tokajac
How can i simply log the date and the time in each line? I found several examples around, but none of them works Regards -- View this message in context: http://www.nabble.com/Log4j-Date-time-logging-tp19048064p19048064.html Sent from the Tomcat - User mailing list archive at Nabble.com

Re: Log4j Date/time logging

2008-08-19 Thread Ingmar Lötzsch
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout ## see PatternLayout ## %d{ISO8601} = -MM-dd HH:mm:ss,SSS ## %d{ABSOLUTE} = HH:mm:ss,SSS ## %-5p = level, left aligned, minimum 5 characters ## %c{1} = last part of the name of the logger ## %m = message ## %n = newline (platform

Re: My Log4j statements going crazy in catalina.out

2008-08-14 Thread emerson cargnin
Thanks gregor. This would be to get tomcat to rotate right? What i was testing was to have a log4j.properties (which I believe is the same outcome as the log4j.xml) in the common/classes, and commons logging and log4j jars in the common/lib. This worked right I had a tomcat.log which rotates

Re: My Log4j statements going crazy in catalina.out

2008-08-13 Thread emerson cargnin
Any suggestion on this? thanks emerson On 08/08/2008, emerson cargnin [EMAIL PROTECTED] wrote: Hi there sorry for the lack of information. I'm running tomcat 5.5.26. logging.properties are in the tomcat/conf folder. My log4j file is inside tomcat/bin/resources This is the location where

Re: My Log4j statements going crazy in catalina.out

2008-08-13 Thread Gregor Schneider
Well, I guess you should v´have a vanilla start with log4j. Therefore: 1st make sure that you've got all necessary libs installed in the appropriate folders (guess you're fine here, otherwise no logs would show up) 2nd create a file $catalina_home/common/classes/log4j.xml with the following

Log4J error using Quartz scheduler

2008-08-12 Thread Brian Parkinson
Hello - Wondering if anyone can help. I am using: - Tomcat 6.0.14 on Linix - Java 1.5.0_13 - Spring 2.5.1 - Quartz scheduler 1.6.0 - commons logging 1.1.1 I am seeing the following in the tomcat catalina-2008-mm-dd.log file: SEVERE: Runtime error occured in main trigger firing loop.

My Log4j statements going crazy in catalina.out

2008-08-08 Thread emerson cargnin
Hi Guys My Log4j configuration has all turned to ERROR in my log4j.lcf. In resin this works right, so no INFO or DEBUG in the resin main log file. In tomcat, though, even if my log file has only ERROR statements, catalina.out seems to be getting all INFO, DEBUG from my application. I couldnt

Re: My Log4j statements going crazy in catalina.out

2008-08-08 Thread Christopher Schultz
| level. Could you post your log4j configuration and your logging.properties? That would help immensely. Also, please tell us where each file is deployed into your running TC instance. Also, maybe what version of TC you are running. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (MingW32

Re: My Log4j statements going crazy in catalina.out

2008-08-08 Thread emerson cargnin
Hi there sorry for the lack of information. I'm running tomcat 5.5.26. logging.properties are in the tomcat/conf folder. My log4j file is inside tomcat/bin/resources This is the location where all our resources files are located, to make transparent the migration from resin to tomcat. I can

Log4J logging from server not working

2008-07-29 Thread Denis Kezerashvili
I've been stuck with this problem for about a week now. I am trying to get the Log4J working in my servlet. I have tried it on Tomcat 6.0.16 as well as Tomcat 5.5.26. I have followed all the directions in the logging section for both versions. The internal logging works fine in both cases

Re: Log4J logging from server not working

2008-07-29 Thread Denis Kezerashvili
Does anybody has any idea what might be causing the problem with Log4J? I've googled for the longest time and there are no leads I found. Denis - Original Message From: Denis Kezerashvili [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, July 29, 2008 9:49:08 AM Subject

Re: Log4J logging from server not working

2008-07-29 Thread Thomas Haines
: Does anybody has any idea what might be causing the problem with Log4J? I've googled for the longest time and there are no leads I found. Denis - Original Message From: Denis Kezerashvili [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, July 29, 2008 9:49:08 AM Subject

Log4j Logging

2008-06-24 Thread Hexsel, Gustavo
Hey folks, quick question: if, according to http://tomcat.apache.org/tomcat-6.0-doc/logging.html, log4j is the recommended logger, and Tomcat uses commons-logging, why is log4j not shipped as the default logger??? I suspect as Tomcat uses a package renamed logging implementation which

RE: Log4j Logging

2008-06-24 Thread Caldarale, Charles R
From: Hexsel, Gustavo [mailto:[EMAIL PROTECTED] Subject: Log4j Logging (This must be national logging questions month :-) if, according to http://tomcat.apache.org/tomcat-6.0-doc/logging.html, log4j is the recommended logger I don't see anything on that page that implies log4j

RE: Log4j Logging

2008-06-24 Thread Hexsel, Gustavo
Cool, that helps! Sorry about the previous message, I think in my rage I probably skipped the most important details :) Does anyone know any project that has some flexible formatters a la log4j for java.logging? SimpleFormatter and that XML formatter are way too verbose (having the 2 lines

[OT/stupid] Re: Log4j Logging

2008-06-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: | From: Hexsel, Gustavo [mailto:[EMAIL PROTECTED] | Subject: Log4j Logging | | (This must be national logging questions month :-) Logging too much is bad for the environment. You should recycle your telephone

Re: Log4j Logging

2008-06-24 Thread David Fisher
such as java.util.logging or log4j as detailed next. (2) There ought to be a link to some page describing how to convert a Logger into something useful in Tomcat 5.5. There is the page http://wiki.apache.org/tomcat/FAQ/Logging but there is no link on the logging page to the FAQ. (3

Re: Log4j Logging

2008-06-24 Thread Mark Thomas
David Fisher wrote: (3) On the logger FAQ page the Configuration link is dead! http://tomcat.apache.org/tomcat-5.0-doc/config/logger.html gives a 404. Fixed. Note, the FAQ is now on a wiki so anyone who spots an error can just fix it. Mark

RE: Log4j Logging

2008-06-24 Thread Walter Thompson
OK. It doesn't give 404, how about fixing the page not found on this server error too? -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 24, 2008 3:30 PM To: Tomcat Users List Subject: Re: Log4j Logging David Fisher wrote: (3) On the logger FAQ page

Re: Log4j Logging

2008-06-24 Thread Mark Thomas
Walter Thompson wrote: OK. It doesn't give 404, how about fixing the page not found on this server error too? I'm not a mind reader. Which link is broken? Mark - To start a new topic, e-mail: users@tomcat.apache.org To

RE: Log4j Logging

2008-06-24 Thread Walter Thompson
:45 PM To: Tomcat Users List Subject: Re: Log4j Logging Walter Thompson wrote: OK. It doesn't give 404, how about fixing the page not found on this server error too? I'm not a mind reader. Which link is broken? Mark

Re: Log4j Logging

2008-06-24 Thread Mark Thomas
Walter Thompson wrote: The same one you claimed to have fixed the 404 error on! (3) On the logger FAQ page the Configuration link is dead! http://tomcat.apache.org/tomcat-5.0-doc/config/logger.html gives a 404. Of course it will give a 404. That URL doesn't exist which is why I updated the

Re: Log4j Logging

2008-06-24 Thread David Fisher
It now points to http://tomcat.apache.org/tomcat-4.1-doc/config/logger.html That's perfect for me. Thank you very much, Dave On Jun 24, 2008, at 3:30 PM, Mark Thomas wrote: David Fisher wrote: (3) On the logger FAQ page the Configuration link is dead!

trying to use log4j in tomcat5.5 + jmx support

2008-06-07 Thread Javier Díaz
Hello, I'm using a tomcat 5.5.25 with log4j for logging configured as it is described here: http://tomcat.apache.org/tomcat-5.5-doc/logging.html. I'm only using it at tomcat level because my web applications I'm using are very old (~2000) and have their own logging system. Well, I've been

log4j problem

2008-05-31 Thread John Pedersen
Hi, I'm still trying to fix the problem with the welcome file not working, but my logging going wrong has trumped that little problem. I had it working fine using log4j - here's my properties file: log4j.rootLogger=info, logfile log4j.appender.stdout=org.apache.log4j.ConsoleAppender

Re: log4j problem

2008-05-31 Thread Martin
The OFF has the highest possible rank and is intended to turn off logging. http://www.jdocs.com/log4j/1.2.13/api-index.html?m=classp=org.apache.log4jc=PropertyConfiguratorrender=classic HTH Martin - Original Message - From: John Pedersen [EMAIL PROTECTED] To: Tomcat Users

Re: Error using log4j in Tomcat 5.5

2008-05-23 Thread nashrul
Thanks a lot Schultz, my log4j logging works now, it prints the logs to stdout_20080523.log Actually, I followed the instruction on log4j docs.. I created initialization servlet, Log4jInit.class, that initializes log4j and loaded on startup... This initialization class looks like

<    1   2   3   4   5   6   7   8   >