You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dennis McRitchie <dm...@Princeton.EDU> on 2003/11/12 23:19:16 UTC

How to turn on mod_jk2 logging

I'm trying to figure out why some of my uri matchings work and some don't,
so I wanted to turn on the logging that is generated from mod_jk2 code such
as in jk_uriMap.c.

But I haven't yet found a switch to do this.

I have added to my workers2.properties:

[logger.file]
level=info
file=/usr/psr/var/apache2/log/jk_log

I also tried using [logger] instead of the above, and I tried them both with
and without the "file=". I also tried "level=DEBUG". And I also tried
adding:

# Map the Tomcat PSR webapp to the Web server uri space
[uri:psrtest1.princeton.edu/*]
info=Map the whole webapp
worker=ajp13:localhost:8009
debug=9

but I don't get any jk2 logging even when the matching succeeds. I *can*
turn on connector logging on the Tomcat side of the connection, but that
only gives me info when the matching succeeds.

Any tips would be much appreciated.

Thanks,
       Dennis

Dennis McRitchie
Research & Academic Applications Support (RAAS)
Academic Services Department
Office of Information Technology
Princeton University



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


RE: How to turn on mod_jk2 logging

Posted by Dennis McRitchie <dm...@Princeton.EDU>.
Thanks Mark! That did the trick.

Unfortunately, when my uri doesn't match, I still get no logging, but I
think that's because of the way that my request bails out of jk2_handler().
So I'll have to build it myself and put in some more logging.

Thanks again.

Dennis

Dennis McRitchie
Research & Academic Applications Support (RAAS)
Academic Services Department
Office of Information Technology
Princeton University

> -----Original Message-----
> From: Mark Eggers [mailto:its_toasted@yahoo.com]
> Sent: Wednesday, November 12, 2003 5:43 PM
> To: Tomcat Users List
> Subject: Re: How to turn on mod_jk2 logging
>
>
> From my config file on the Windows/2000 Pro side:
>
> # Alternate file logger
> [logger.file:0]
> # level=DEBUG
> file=${serverRoot}/logs/jk2.log
>
> [workerEnv:]
> info=Global server options
> timing=1
> debug=0
> # Default Native Logger (apache2 or win32 )
> # can be overriden to a file logger, useful
> # when tracing win32 related issues
> logger=logger.file:0
>
>
> Hope this helps
>
> /mde/
> . . . . just my two cents
>
> __________________________________
> Do you Yahoo!?
> Protect your identity with Yahoo! Mail AddressGuard
> http://antispam.yahoo.com/whatsnewfree
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Re: How to turn on mod_jk2 logging

Posted by Mark Eggers <it...@yahoo.com>.
>From my config file on the Windows/2000 Pro side:

# Alternate file logger
[logger.file:0]
# level=DEBUG
file=${serverRoot}/logs/jk2.log

[workerEnv:]
info=Global server options
timing=1
debug=0
# Default Native Logger (apache2 or win32 )
# can be overriden to a file logger, useful
# when tracing win32 related issues
logger=logger.file:0


Hope this helps

/mde/
. . . . just my two cents

__________________________________
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
http://antispam.yahoo.com/whatsnewfree

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org