RE: Logging of illegal requests from Tomcat 5

2005-08-23 Thread Marius Hanganu
You could log all requests using the access log valve: Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ (more about at

Re: logging tomcat 5.5

2005-08-23 Thread Remy Maucherat
On 8/23/05, Alain Gaeremynck [EMAIL PROTECTED] wrote: I read the doc and found out that in tomcat 5.5 we are suppose to use log 4 j to handle getServletContext.log. However i rather liked the old ways Is it stil supported? if i put this in my context Logger

Re: logging tomcat 5.5

2005-08-23 Thread Alain Gaeremynck
thanks for the info. I ws afraid of that but i wanted to make sure sigh *** Remy Maucherat wrote: On 8/23/05, Alain Gaeremynck [EMAIL PROTECTED] wrote: I read the doc and found out that in tomcat 5.5 we are suppose to use log 4 j to handle getServletContext.log.

RE: logging tomcat 5.5

2005-08-23 Thread Allistair Crossley
actually you don't *have* to use log4j, since 5.5.8/9 tomcat has shipped with a customised jdk logging configuration (juli) that sets up a localhost log for you out of the box -Original Message- From: Alain Gaeremynck [mailto:[EMAIL PROTECTED] Sent: 23 August 2005 16:09 To: Tomcat

RE: Logging With Tomcat 5.5

2005-08-02 Thread Allistair Crossley
Don't confuse not understanding with not sufficient. The instructions do lead to a correct configuration. However, here it is more explicitly. Allistair. Per-webapp logging == 1. Add log4j's jar to both your webapp's WEB-INF/lib folders 2. Add log4j.properties to both your

RE: Logging With Tomcat 5.5

2005-08-02 Thread Scott Purcell
: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 02, 2005 8:31 AM To: Tomcat Users List Subject: RE: Logging With Tomcat 5.5 Don't confuse not understanding with not sufficient. The instructions do lead to a correct configuration. However, here it is more explicitly. Allistair

RE: Logging With Tomcat 5.5

2005-08-02 Thread Allistair Crossley
/log4j.properties log4j.logger.org.apache.catalina.core.ContainerBase.[Catalina].[localhost][/banana]=DEBUG, R Allistair. -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: 02 August 2005 14:49 To: Tomcat Users List Subject: RE: Logging With Tomcat 5.5 Allistair

Re: Logging (Log4J) with Tomcat 4.1.x

2005-07-05 Thread Daniel Fanjul
No, you have to put each application log4j.xml in each WEB-INF/classes or WEB-INF/lib (in a jar) The first time you declare a Logger in your app, log4j.xml is searched in the ClassLoader; but, I don´t know why (maybe some log4j initialization static code), some log4j class is loaded by the

Re: Logging (Log4J) with Tomcat 4.1.x

2005-07-04 Thread Anoop kumar V
A log4j mailing list might give u a more effective answer Try and change the appender to be ConsoleAppender (please check the name) - see if the output displays on the tomcat console.Then u can debug from there... HTH, Anoop On 7/4/05, Peter Verhoye [EMAIL PROTECTED] wrote: Hi all, I

Re: Logging (Log4J) with Tomcat 4.1.x

2005-07-04 Thread Daniel Fanjul
log4j lib must bin in the Tomcat's common/lib 2005/7/4, Anoop kumar V [EMAIL PROTECTED]: A log4j mailing list might give u a more effective answer Try and change the appender to be ConsoleAppender (please check the name) - see if the output displays on the tomcat console.Then u can

Re: Logging (Log4J) with Tomcat 4.1.x

2005-07-04 Thread devisch . w
] cc: 04/07/2005 16:54 Subject: Re: Logging (Log4J) with Tomcat 4.1.x Please respond

Re: Logging (Log4J) with Tomcat 4.1.x

2005-07-04 Thread Peter Verhoye
log4j lib must bin in the Tomcat's common/lib There are multiple webapps deployed on the server. Will adding log4j to common/lib not activate log for all of them? BB Peter 2005/7/4, Anoop kumar V [EMAIL PROTECTED]: A log4j mailing list might give u a more effective answer Try

Re: Logging Server Responses

2005-06-09 Thread TK
Is the time recorded (using %D) includes time taken for middleware/application server and database processings? On 6/7/05, Tim Funk [EMAIL PROTECTED] wrote: See http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html In particular:

Re: Logging Server Responses

2005-06-09 Thread Tim Funk
Its the time for Servlet.service(...) to be processed. [Which includes any middleware/application server and database processings] -Tim TK wrote: Is the time recorded (using %D) includes time taken for middleware/application server and database processings? On 6/7/05, Tim Funk [EMAIL

Re: Logging Server Responses

2005-06-09 Thread Mario Ivankovits
And - I think - partially the time taken to send back the response. Its the time for Servlet.service(...) to be processed. [Which includes any middleware/application server and database processings] Is the time recorded (using %D) includes time taken for middleware/application server and

Re: Logging Server Responses

2005-06-07 Thread Tim Funk
See http://jakarta.apache.org/tomcat/tomcat-5.0-doc/catalina/docs/api/org/apache/catalina/valves/AccessLogValve.html In particular: %D - Time taken to process the request, in millis %T - Time taken to process the request, in seconds Otherwise use a filter and rely on: %{xxx}r -Tim TK wrote:

Re: Logging the HTTP headers

2005-06-03 Thread Markus Schönhaber
Am Donnerstag, 2. Juni 2005 10:03 schrieb cristi: Hello all Is there any posibility of logging the HTTP headers ? http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/valve.html#Request%20Dumper%20Valve Regards mks - To

Re: Logging the HTTP headers

2005-06-03 Thread Anto Paul
On 6/3/05, Markus Schönhaber [EMAIL PROTECTED] wrote: Am Donnerstag, 2. Juni 2005 10:03 schrieb cristi: Hello all Is there any posibility of logging the HTTP headers ? http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/valve.html#Request%20Dumper%20Valve What about a Filter ? --

Re: Logging the HTTP headers

2005-06-03 Thread Markus Schönhaber
Am Freitag, 3. Juni 2005 11:46 schrieb Anto Paul: On 6/3/05, Markus Schönhaber [EMAIL PROTECTED] wrote: Am Donnerstag, 2. Juni 2005 10:03 schrieb cristi: Hello all Is there any posibility of logging the HTTP headers ?

Re: Logging into rational database....

2005-05-27 Thread Tim Funk
IIRC - there is a JDBCAccessLogValve - You may need to check the javadocs on its use. -Tim David wrote: Hallo, I have sent this question yesterday but nobody responded. It's a short question so please send me some information. Is it possible to configure tomcat to log the access log

RE: Logging into rational database....

2005-05-27 Thread Steve Kirk
I think there is a DBCP logger, but this is for the Java code logging statements, rather than for the access log AFAIK. Can't remember where I read this. Probably on the TC site, try starting here: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/index.html -Original Message- From:

Re: Logging into rational database....

2005-05-27 Thread Anto Paul
On 5/27/05, David [EMAIL PROTECTED] wrote: Hallo, I have sent this question yesterday but nobody responded. It's a short question so please send me some information. Is it possible to configure tomcat to log the access log into a rational database? Is there an existing tutorial?

RE: Logging into rational database....

2005-05-27 Thread Serlet Jean-Claude
Hello Use a Valve component and use the class named JDBCaccessLogValve Here is an useful URL http://jakarta.apache.org/tomcat/tomcat-5.5-doc/catalina/docs/api/org/apache /catalina/valves/JDBCAccessLogValve.html Jean-Claude -Message d'origine- De : David [mailto:[EMAIL PROTECTED] Envoyé

Re: logging to seperate log file per war file

2005-04-12 Thread Jonathan Eric Miller
My guess (but, I'm not a Tomcat developer so what do I know! ;-)) is that you can't do it for System.out.println(). However, I did notice that System.setOut() allows you to redirect where standard out goes. However, I'm guessing that that would be for the entire JVM? As of Tomcat 5.5.9 they

Re: logging to seperate log file per war file

2005-04-12 Thread Darek Czarkowski
do you have console appender included in your log4j config file? comment it out. On Mon, 2005-04-11 at 20:12, quentin.compson wrote: is this possible using context.xml or some other way? im using log4j but some output still goes to stdout (e.g System.out.println()). thx

Re: Logging in Tomcat 5.5

2005-03-18 Thread Jess Holle
I'm *guessing* you're facing some of the issues I have been. I believe you'll essentially need to set up a separate LoggerRepository (based on classloader, not thread or contextual class loader) and provide separate config files for each. I've got log4j.jar in my WEB-INF/lib, I'm using my own

Re: Logging in Tomcat 5.5

2005-03-17 Thread Simon Kitching
On Fri, 2005-03-18 at 11:25 +0530, Joy Kenneth Harry wrote: Hi, I have a webapp in tomcat. I am using a separate Log4j.xml for it, in its WEB-INF classes folder. I've also put a Log4j.xml in TOMCAT_HOME/ common/classes and set it to false so that I do not get the general Tomcat logs. But

Re: logging remote IP address

2005-01-31 Thread David Smith
Sorry I'm coming into this discussion so late. I tend not to read work email on weekends for my own sanity. Let's not equate IPs with users. The fact of the matter is there are a lot of places that use cable routers to share one internet IP with a number of different clients. Here in

Re: logging remote IP address

2005-01-31 Thread Dakota Jack
snip Let's not equate IPs with users. The fact of the matter is there are a lot of places that use cable routers to share one internet IP with a number of different clients. /snip You probably did not have time to read all of the posts, David, but, the fact of the matter, I think everyone

Re: logging remote IP address

2005-01-29 Thread Markus Schönhaber
Mark wrote: I'm just tring to see if http request that came from one IP address has more then 1 client behind it. I've seen on some webpages that My IP is displayed as both external and internal - so it means it's doable - but the question is how to get this info in Tomcat. If your local an your

Re: logging remote IP address

2005-01-29 Thread Dakota Jack
snip On Fri, 28 Jan 2005 20:43:20 -0500, Parsons Technical Services [EMAIL PROTECTED] wrote: Definitely possible. Not as unlikely as you think. I know of shops that put a whole bunch of users on the same IP. Then there are schools that put a hundreds of classroom machines on one IP. Doug

RE: logging remote IP address

2005-01-29 Thread Caldarale, Charles R
From: Dakota Jack [mailto:[EMAIL PROTECTED] Subject: Re: logging remote IP address The IP address that is exposed to the public, which is the one I use, has to be different or there would be no way to get back to the client machine. Not true - the combination of IP address and PORT must

[OT]Re: logging remote IP address

2005-01-29 Thread Parsons Technical Services
From: Dakota Jack [mailto:[EMAIL PROTECTED] Subject: Re: logging remote IP address The IP address that is exposed to the public, which is the one I use, has to be different or there would be no way to get back to the client machine. Charles Wrote: Not true - the combination of IP address

Re: [OT]Re: logging remote IP address

2005-01-29 Thread Dakota Jack
snip On Sat, 29 Jan 2005 22:58:01 -0500, Parsons Technical Services Not true - the combination of IP address and PORT must be unique, not just the IP address. This is the essence of how NAT and proxies work. /snip Yes, once again, I agree with this. Jack -- You can lead a horse to water

Re: logging remote IP address

2005-01-28 Thread Mark
I'm just tring to see if http request that came from one IP address has more then 1 client behind it. I've seen on some webpages that My IP is displayed as both external and internal - so it means it's doable - but the question is how to get this info in Tomcat. --- Parsons Technical Services

Re: logging remote IP address

2005-01-28 Thread Dakota Jack
I don't know what you mean by I've seen on some webpages [sic] that My [sic] IP is displayed as both exernal and internal. The IP address is for the internet and there is only one. You may have internal routing. That is different. I don't know what you mean about webpages displaying your

RE: logging remote IP address

2005-01-28 Thread Richard Mixon (qwest)
Mark wrote: I'm just tring to see if http request that came from one IP address has more then 1 client behind it. I've seen on some webpages that My IP is displayed as both external and internal - so it means it's doable - but the question is how to get this info in Tomcat. A major purpose of

RE: logging remote IP address

2005-01-28 Thread Cervenka, Tom
Mark, Why do want to know the internal NAT ip address of a request? How is this helpful? Also, what if the requests come from clients with accounts on the same multiuser system? Are you trying to figure out how to tell them apart? There is no NAT address in this case. Maybe what you are trying

Re: logging remote IP address

2005-01-28 Thread Dakota Jack
Richard Mixon is, as usual, dead-on right. A good primer is http://webserver.cpg.com/ws/3.4/ snip A major purpose of a NAT style firewall is to hide the private ip addresses behind the firewall. If it allowed this information out it would be a security compromise - the network topology behind

RE: logging remote IP address

2005-01-28 Thread Mark
I'm trying to figure out is is the client on remote network has a duplicated id's (id used in my aplication). Here an example: I have two entries in access log file within 30 second from the same IP, but different logon id - my question is how to track it down that it's a different person? I

Re: logging remote IP address

2005-01-28 Thread Dakota Jack
If it is the same IP address, it probably is the same person. The alternatives are highly unlikely, if possible. Jack snip I have two entries in access log file within 30 second from the same IP, but different logon id - my question is how to track it down that it's a different person? /snip

Re: logging remote IP address

2005-01-28 Thread Parsons Technical Services
@jakarta.apache.org Sent: Friday, January 28, 2005 4:44 PM Subject: Re: logging remote IP address If it is the same IP address, it probably is the same person. The alternatives are highly unlikely, if possible. Jack snip I have two entries in access log file within 30 second from the same IP

Re: logging remote IP address

2005-01-27 Thread Parsons Technical Services
If what you are trying to see is the private IP of a machine then you will only have success if the machine was named the IP. Not likely. The IP is not stored in the HTTP header (Unless I missed it) but is derived from the TCP/IP packet. When a machine is on a private network this address is

Re: Logging exceptions per webapp in Tomcat 5.5

2005-01-06 Thread Shed Hollaway
Svein Did you ever get an answer to you question? If so, how separate the logging for webapps? Shed. - Original Message - From: Svein Olav Bjerkeset [EMAIL PROTECTED] To: tomcat-user@jakarta.apache.org Sent: Monday, January 03, 2005 12:12 AM Subject: Logging exceptions per webapp in

Re: Logging exceptions per webapp in Tomcat 5.5

2005-01-06 Thread Will Hartung
From: Shed Hollaway [EMAIL PROTECTED] Sent: Thursday, January 06, 2005 6:59 PM Svein Did you ever get an answer to you question? If so, how separate the logging for webapps? The exceptions will log out to your log file if you actually bother to capture the exceptions and log them. The

Re: Logging exceptions per webapp in Tomcat 5.5

2005-01-06 Thread Shed Hollaway
Thanks I'll try that! - Original Message - From: Will Hartung [EMAIL PROTECTED] To: Tomcat Users List tomcat-user@jakarta.apache.org Sent: Thursday, January 06, 2005 5:32 PM Subject: Re: Logging exceptions per webapp in Tomcat 5.5 From: Shed Hollaway [EMAIL PROTECTED] Sent: Thursday

Re: logging swallow output

2004-12-04 Thread Roberto Cosenza
Yes, I'm using a ConsoleAppender. Are you telling me to use SimpleLog ? I don't think that the link you sent me clarifies my ideas... /rob David Stevenson wrote: Is your Log4j configured to use a ConsoleAppender? That might possibly explain it.

Re: logging swallow output

2004-12-03 Thread Ben Souther
On Fri, 2004-12-03 at 04:28, Roberto Cosenza wrote: For some reason I still have a lot of messages getting to catalina.out even If I have swallowoutput=3 and my logger gets a copy of the message. What can the problem be? I use tomcat 5.0.28 You might want to take a look at the

Re: logging swallow output

2004-12-03 Thread Roberto Cosenza
I did mean swallowOutput=true My typo. Problem still there, strange... (I'm using commons-logging + log4j to log) Ben Souther wrote: On Fri, 2004-12-03 at 04:28, Roberto Cosenza wrote: For some reason I still have a lot of messages getting to catalina.out even If I have swallowoutput=3 and

Re: logging swallow output

2004-12-03 Thread David Stevenson
Is your Log4j configured to use a ConsoleAppender? That might possibly explain it. http://jakarta.apache.org/commons/httpclient/logging.html David Stevenson On Fri, 2004-12-03 at 08:22, Roberto Cosenza wrote: I did mean swallowOutput=true My typo. Problem still there, strange... (I'm

RE: Logging and Deployment best practices

2004-11-23 Thread Shapira, Yoav
Hi, a) Convert my log4j.properties file to use a RollingFileAppender. I This is good. AppDirectory inside Parameters using the Registry Editor), I couldn't figure out how to change the home directory for Tomcat running as a Relying on the home directory is bad. logging; I'd rather use a

RE: Logging and Deployment best practices

2004-11-23 Thread Phillip Qin
log4j.appender.file.File=${catalina.home}/logs/lciponline_debug.txt log4j.appender.file.DatePattern='.'-MM-dd log4j.appender.file.Threshold=DEBUG -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: November 23, 2004 10:14 AM To: Tomcat Users List Subject: RE: Logging

RE: Logging and Deployment best practices

2004-11-23 Thread Allistair Crossley
But I finally decided as I was upgrading Tomcat that I'd address that problem by moving to a rolling file appender. Seems to me that I have two choices for doing this: we find the rolling file appenders useful as you can specify periodcity and they rename themselves to dated filenames. you

Re: Logging and Deployment best practices

2004-11-23 Thread Paul Christmann
On Tue, 23 Nov 2004 10:14:24 -0500, Shapira, Yoav [EMAIL PROTECTED] wrote: a) Convert my log4j.properties file to use a RollingFileAppender. I This is good. I'd rather use a relative path (something like ./logs) and have the logs all end up in %TOMCAT_HOME%/logs. Log4j configuration files

Re: Logging and Deployment best practices

2004-11-23 Thread Paul Christmann
Shapira, Yoav writes: Loggers are gone in Tomcat 5.5. One gentle suggestion: Is it possible make a note of that in the server configuration documentation? I was reading http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/logger.html and was just getting interested in them before reading a

RE: Logging and Deployment best practices

2004-11-23 Thread Shapira, Yoav
Hi, One gentle suggestion: Is it possible make a note of that in the server configuration documentation? I was reading http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/logger.html and was just getting interested in them before reading a post on the topic this morning. If we were to start

RE: Logging and Deployment best practices

2004-11-23 Thread Allistair Crossley
To: Tomcat Users List Subject: Re: Logging and Deployment best practices Shapira, Yoav writes: Loggers are gone in Tomcat 5.5. One gentle suggestion: Is it possible make a note of that in the server configuration documentation? I was reading http://jakarta.apache.org/tomcat/tomcat

Re: Logging and Deployment best practices

2004-11-23 Thread Paul Christmann
Phillip Qin writes: Hi, I don't think the log will go to system32 directory. Try something like this log4j.appender.file.File=${catalina.home}/logs/lciponline_debug.txt It will when I just do this, though: log4j.appender.file.File=lciponline_debug.txt Using the environment variable was

RE: Logging and Deployment best practices

2004-11-23 Thread Shapira, Yoav
Hi, speaking of which yoav, it's been a little while since i first submitted a doc patch for 5.5's logging page and it's not been made live yet .. is this a painful procedure ;) :) As the Bugzilla comments said, your patch (a modified version thereof, actually) has been committed. The changes

RE: logging question

2004-11-23 Thread Shapira, Yoav
Hi, Attributes are case-sensitive: it's swallowOutput, not SwallowOutput or another variant. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Scott Pippin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 23, 2004 3:29 PM To: [EMAIL PROTECTED] Subject: logging question

Re: logging compression stats

2004-11-22 Thread Tim Funk
There is no way to log that information right now. -Tim Ben Simon wrote: Howdy, I've enabled compression on my server [1]: , | Connector port=8090 |maxThreads=150 minSpareThreads=25 maxSpareThreads=75 |enableLookups=false redirectPort=8453 acceptCount=100 |

RE: logging question

2004-11-15 Thread Shapira, Yoav
Hi, Just adding a Logger is not enough to redirect System.out.println calls to it. You need to add swallowOutput=true to your Context definition. Or alternatively change the code from using System.out.println to using getServletContext().log(...). Yoav Shapira http://www.yoavshapira.com

RE: Logging problem under Tomcat 5.0

2004-11-08 Thread Shapira, Yoav
Hi, do need it. In any event, I don't like the log level changing without knowing why without explicitly allowing it (tho' by deploying some jar or war, I've effectively ok'd it). Yeah, maybe it's what you put in parentheses above, or maybe it's something else, but things don't just change by

RE: Logging stout to seperate file for each webapp

2004-10-27 Thread Shapira, Yoav
Hi, Check out the swallowOutput attribute on the Context element, and the SystemOut and SystemErr Logger elements: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/logger.html and http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html. Yoav Shapira

RE: logging, configuration.

2004-10-04 Thread Shapira, Yoav
Hi, Comment out the RequestDumperValve (in $CATALINA_HOME/conf/server.xml) altogether: it's output is not errors, as you noted. However, it's also not a Logger per-se and so the Logger congifuration doesn't apply to it. It's commented out by default, so go back to the default ;) Yoav Shapira

RE: logging, configuration.

2004-10-04 Thread Pawson, David
-Original Message- From: Shapira, Yoav Comment out the RequestDumperValve (in $CATALINA_HOME/conf/server.xml) altogether: it's output is not errors, as you noted. However, it's also not a Logger per-se and so the Logger congifuration doesn't apply to it.

Re: logging something to catalina.out

2004-09-06 Thread Rhino
- Original Message - From: muhammed soyer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 06, 2004 7:53 AM Subject: logging something to catalina.out Hello, How can I write something to the logfile . I should study log4j in a few days .. But if

Re: logging something to catalina.out

2004-09-06 Thread Christian Fritze
Rhino wrote: If I'm not mistaken, all you need is: System.out.println(I should study log4j in a few days...). Try replacing 'out' with 'err', then it should work... ;-) Christian -- Gre aus Europas grtem Greetings from Europe's largest Urban Sprawl (DUDOMA -- Duisburg Dortmund

Re: logging something to catalina.out

2004-09-06 Thread muhammed soyer
] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 06, 2004 3:10 PM Subject: Re: logging something to catalina.out - Original Message - From: muhammed soyer [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 06, 2004 7:53 AM Subject: logging

Re: logging something to catalina.out

2004-09-06 Thread Rhino
- Original Message - From: Christian Fritze [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Monday, September 06, 2004 8:18 AM Subject: Re: logging something to catalina.out Rhino wrote: If I'm not mistaken, all you need is: System.out.println(I should study

RE: Logging problem SOAP based web service

2004-08-20 Thread timo.m.jaakola
=command value=somecmd / parameter name=user value=cn=someuser / /foo-request /someService /s:Body /s:Envelope thanks, -Timo -Original Message- From: ext Tim Funk [mailto:[EMAIL PROTECTED] Sent: 18 August, 2004 13:46 To: Tomcat Users List Subject: Re: Logging problem SOAP

Re: Logging problem SOAP based web service

2004-08-20 Thread QM
On Fri, Aug 20, 2004 at 02:02:03PM +0300, [EMAIL PROTECTED] wrote: : What are Filters and how they can be used? Google servlet filter -- it's available in servlet spec 2.3 and later. Essentially, you can set up a series of these filters to wrap a call to your webapp, based on URI path or file

Re: Logging problem SOAP based web service

2004-08-18 Thread Tim Funk
You might need to use a Filter to stuff the things you need to log into the ServletRequest. Then you can use this: http://marc.theaimsgroup.com/?l=tomcat-userm=109273888725607w=2 -Tim [EMAIL PROTECTED] wrote: Hi, I have a SOAP based web service running on tomcat 4.1.30. This service should write

Re: Logging problem SOAP based web service

2004-08-18 Thread QM
On Wed, Aug 18, 2004 at 11:46:19AM +0300, [EMAIL PROTECTED] wrote: : I have a SOAP based web service running on tomcat 4.1.30. This service should : write a log containing client's IP address and some attributes from : SOAP-message body (inside SOAP envelope). Is this possible somehow? What's

RE: Logging, Analysis and Forwarding

2004-07-29 Thread Shapira, Yoav
Hi, There are many free log analysis tools. Tomcat's AccessLogValve writes the standard formats (CLF and ELF, Common Logfile Format and Extended Logfile Format). So you can use something like WebAlizer or http-analyze. Monthly collection of your logs is something you'd have to script yourself:

Re: Logging, Analysis and Forwarding

2004-07-29 Thread Tim Funk
To rotate your logs monthly - use the fileDateFormat field http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html for example: fileDateFormat=-MM -Tim Shapira, Yoav wrote: Hi, There are many free log analysis tools. Tomcat's AccessLogValve writes the standard formats (CLF and ELF,

Re: Logging, Analysis and Forwarding

2004-07-28 Thread Robert Bateman
On Wednesday 28 July 2004 03:47 pm, SH Solutions wrote: 3. Is there an easy way to forward host/test/... to http://127.0.0.1:8080/test/ (there is apache in 8080, tomcat on 80). I read that filters could do so, but found no example... I used a simple HTML Redirect to accomplish this. I

RE: Logging with mod_jk

2004-07-16 Thread Jens . Mueller
No hints? -Ursprüngliche Nachricht- Betreff: *** Mail von extern mit internem Absender ***Logging with mod_jk Hello all, is it possible to log the Client-IP with mod_jk on Apache 1.3.x ?? The is nothing about it in the Documentation. I use the JkLogStampFormat-Directive. Greets Jens

Re: Logging with mod_jk

2004-07-16 Thread Tim Funk
The client IP is already known by apache (%a) Or via HttpServletRequest.getRemoteAddr() -Tim [EMAIL PROTECTED] wrote: No hints? -Ursprüngliche Nachricht- Betreff: *** Mail von extern mit internem Absender ***Logging with mod_jk Hello all, is it possible to log the Client-IP with mod_jk on

Re: Logging in Apache Tomcat

2004-07-02 Thread Kunthar
Try System.out.println(your variable or your error thrown); in your application for critical parts. And follow the results from catalina.out file under /tomcat/logs Hope this helps... Gokhan Robert Einsle wrote: Hello List, How do i make logging in JAkarta Tomcat applications?? Does it exists an

RE: logging

2004-07-02 Thread Ivan Jouikov
I'm having the same issue. Any suggestions would be welcome. -Original Message- From: Charles Baker [mailto:[EMAIL PROTECTED] Sent: Friday, July 02, 2004 7:04 AM To: [EMAIL PROTECTED] Subject: logging I'm using tomcat 4.1.30 on Red Hat Linux w/ Sun JDK 1.4.2_03. In catalina.sh one of

Re: logging

2004-07-02 Thread Bill Barker
This is planned for a future release of TC 5 (it's available in the 'nightly' now). And, no, I have absolutely no idea at all, not even a guess, as to when this version will have an official release. Charles Baker [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using tomcat 4.1.30

Re: Logging in Apache Tomcat

2004-07-01 Thread Harald Henkel
Use log4j, I would say. Robert Einsle wrote: Hello List, How do i make logging in JAkarta Tomcat applications?? Does it exists an Howto for it?? Thanks for help \Robert - To unsubscribe, e-mail: [EMAIL

RE: Logging

2004-02-20 Thread Yansheng Lin
No, I am doing it through log4j. But would it interested in knowing anyone using J2SE 1.5.0 beta logging API. Heard it's the same as log4j in principle. Thanks! -Original Message- From: David Evans [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 11:06 AM To: Tomcat Users

RE: Logging

2004-02-20 Thread Shapira, Yoav
Howdy, No, I am doing it through log4j. But would it interested in knowing anyone using J2SE 1.5.0 beta logging API. Heard it's the same as log4j in principle. No significant changes were made to the java.util.logging API in J2SE 1.5. The API is largely the same as in JDK 1.4. And yes, it's

RE: Logging

2004-02-20 Thread David Evans
So is log4j the industry standard for logging in tomcat apps? Is it what you use? dave On Fri, 2004-02-20 at 13:54, Shapira, Yoav wrote: Howdy, No, I am doing it through log4j. But would it interested in knowing anyone using J2SE 1.5.0 beta logging API. Heard it's the same as log4j in

Re: Logging

2004-02-20 Thread epyonne
That's what we use. - Original Message - From: David Evans [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Friday, February 20, 2004 02:02 PM Subject: RE: Logging So is log4j the industry standard for logging in tomcat apps? Is it what you use? dave On Fri, 2004

RE: Logging

2004-02-20 Thread Shapira, Yoav
Howdy, So is log4j the industry standard for logging in tomcat apps? Is it what you use? It's what I use, and I'd say there's no established industry standard. It's one of the most commonly used packaged. Many people still use System.out/System.err. Many servlet developers use the

Re: Logging

2004-02-20 Thread Nathan Maves
Where is the best resource on how to make your classes log4j compliant? Nathan Maves Sun Microsystems On Feb 20, 2004, at 1:08 PM, Shapira, Yoav wrote: Howdy, So is log4j the industry standard for logging in tomcat apps? Is it what you use? It's what I use, and I'd say there's no established

Re: Logging

2004-02-20 Thread Adam Hardy
Nathan, it seems from your signature that you're already at the right place. Or are you a troll? Seriously though, log4j, like the other loggers, is an API that you code with - there's no compliancy involved. Adam On 02/20/2004 09:13 PM Nathan Maves wrote: Where is the best resource on how to

Re: Logging

2004-02-20 Thread Nathan Maves
I have been waiting for someone to say that :) I was just being lazy and looking for a easy example. ~N On Feb 20, 2004, at 1:29 PM, Adam Hardy wrote: Nathan, it seems from your signature that you're already at the right place. Or are you a troll? Seriously though, log4j, like the other

RE: Logging of JK2 ISAPI connector

2004-02-10 Thread Krell, Andrew
With JK2 you set the log in the workers2.properties file. Since you are using ISAPI, you will want: [logger.win32:] Level=(EMERG,ERROR,INFO, or DEBUG) According to the documentation, it normally ends at native Application Event Log. You can change the file location of some of the other

Re: Logging of JK2 ISAPI connector

2004-02-10 Thread Sam Seaver
Just a note, though this only happened to me in Linux: If the 'native Application Event Log' gets disrupted somehow, then it caused the connector to 'hang' and thus stopped all calls for jsp pages. In Linux what happened to me every sunday was that the 'logrotate' utiltiy would move my

Re: Logging of JK2 ISAPI connector

2004-02-10 Thread Daniel Schmitt
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html Default looging on win32 is in Start - All Programs - Administrative Tools - Event Viewer to change the loglevel put in your workers2.properties # Default INFO Supported: EMERG, ERROR, INFO, DEBUG [logger] level=DEBUG

RE: Logging / Exception handling framework within Tomcat

2004-02-06 Thread Shapira, Yoav
Howdy, You need to read the log4j documentation: that framework is far from basic, very complete, and meets all your requirements. Log4j supports modifying properties at runtime. You can write your own code following instructions to do this, or you can use the log4j sandbox's configuration

RE: Logging / Exception handling framework within Tomcat

2004-02-06 Thread Johannes
hi yoav, I've been showing up here some months ago, and now you're still on your job answering the many answers here. I'm impressed... I'll take a look into the Log4J.MDC - don't you think it would make sense to provide guidelines on how to log debugmessages and exceptions in servlet/jsp-apps

RE: Logging / Exception handling framework within Tomcat

2004-02-06 Thread Shapira, Yoav
Howdy, I'll take a look into the Log4J.MDC - don't you think it would make sense to provide guidelines on how to log debugmessages and exceptions in servlet/jsp-apps (like the App Dev. Guide of Craig)? or is there already something at the log4j site you know of? There isn't something explicit:

Re: Logging and Tomcat 5.0.16

2004-01-11 Thread Jacob Kjome
At 02:44 PM 1/10/2004 -0800, you wrote: Shapira, Yoav wrote: 1) Is there a reason why the startup.sh script that comes bundled with Tomcat 5.0.16 adds commons-logging-api.jar to the CLASSPATH? As far as I can tell, it's the only script that uses it. Yes, there's a good reason: tomcat internals

Re: Logging and Tomcat 5.0.16

2004-01-10 Thread Mark Woon
Shapira, Yoav wrote: 1) Is there a reason why the startup.sh script that comes bundled with Tomcat 5.0.16 adds commons-logging-api.jar to the CLASSPATH? As far as I can tell, it's the only script that uses it. Yes, there's a good reason: tomcat internals use commons-logging to do their logging.

RE: Logging and Tomcat 5.0.16

2004-01-05 Thread Shapira, Yoav
Howdy, 1) Is there a reason why the startup.sh script that comes bundled with Tomcat 5.0.16 adds commons-logging-api.jar to the CLASSPATH? As far as I can tell, it's the only script that uses it. Yes, there's a good reason: tomcat internals use commons-logging to do their logging. 2) Is there

  1   2   3   >