A suggestion for the default server.xml file

2008-03-10 Thread Josiah Yoder
There are several helpful notes in the server.xml file


>  Note:  A "Service" is not itself a "Container", so you may not
>  define subcomponents such as "Valves" or "Loggers" at this level.


These are nice, but they didn't tell me  where to put my "Valve" component
to do standard access logging.

If we could put a similar comment in the "Engine" class, it could save users
a lot of time -- I think it took me half an hour to figure this out.

E.g. it could say:

 


 Thanks,

Josiah Yoder


A suggestion for the "Logging" FAQ

2008-03-10 Thread Josiah Yoder
After reading the logging FAQ,

http://wiki.apache.org/tomcat/FAQ/Logging

I was under the impression that I would need to program my own logger to
accomplish what I wanted to do, even though it can be done with the simple
request log listed below:

(In server.xml, in the  tag)

> directory="logs"  prefix="localhost_access_log."
> suffix=".txt"
>  pattern="common" resolveHosts="false"/>
>

Could some examples such as this be added to the FAQ or a page linked
directly from the FAQ?

Josiah Yoder