Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Yes... use <a href="http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Access_Log_Valve" rel="nofollow noreferrer">AccessLogValve</a>.</p> <p>For example, in <code>c:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\server.xml</code>, put something like the following into your <code>&lt;Host&gt;</code> element:</p> <pre><code> &lt;Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs/access-logs/" prefix="localhost_access_log." suffix=".log" pattern="%h %l %t &amp;quot;%r&amp;quot; %s %b &amp;quot;%{Referer}i&amp;quot; &amp;quot;%{User-Agent}i&amp;quot; %T" resolveHosts="false"/&gt; </code></pre> <p>See <a href="http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Access_Log_Valve/Attributes" rel="nofollow noreferrer">the docs</a> for information about the % fields. E.g. you asked for GET and POST information; the method is shown by the %r (or %m) field. If you want query parameters, they will be part of the query string (%q) for GETs.</p> <p>The above information will go into an access log that you specify. If you are asking to have this information in the error logs whenever (and only when) an error occurs: some components do that already, but I don't know how to make it happen otherwise. When I get an error and there's no URL given, I use the timestamps from the error logs and access logs to correlate the two.</p> <p>You can set the granularity of logging for various facilities: see <a href="http://tomcat.apache.org/tomcat-6.0-doc/logging.html" rel="nofollow noreferrer">Logging in Tomcat</a>. That can get you more information, which may or may not be relevant to any errors that occur.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload