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
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
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.
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
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
: 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
/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
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
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
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
]
cc:
04/07/2005 16:54 Subject: Re: Logging (Log4J)
with Tomcat 4.1.x
Please respond
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
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:
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
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
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:
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
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 ?
--
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 ?
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
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:
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?
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é
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
@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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
|
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
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
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
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
-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.
- 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
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
]
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
- 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
=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
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
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
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
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:
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,
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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.
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 - 100 of 248 matches
Mail list logo