Hi Bruce
I have updated the server.xml file in Tomcat/conf to add a Valve with the following details:
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html -->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html
Note: The pattern used is equivalent to using pattern="common" -->
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="/opt/awarelogs/tomcat/logs/localhost"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
This creates a log file with the format:
localhost_access_log.2018-12-04.txt
You can probably adjust the pattern to add time onto it as well, though I don't know how you update the AccessLogValve to roll the files more frequently.
I have attached a commented logger.props (it is not a real zip save it and remove the .zip to return it to a text suffix) file which hopefully will give you a guide to what the appenders are doing and how you can play with them. Do not use the Database appender, it doesn't work very well with the version of Log4j that ships with AIM.
Note if you replace the logger.props file in your installation with this one, then it will switch off the logging for the server and divert it to the settings in the file - so better to use it as a reference only.
Also check out this page https://www.tutorialspoint.com/log4j/index.htm