You can change any of the default log file settings for a virtual host.
To specify HTTP log file settings for a virtual host:
If the table is empty, refer to Create a new virtual host.
To include a time or date stamp in the file name when the log
file is rotated, in the Log file name field,
variables to the file name. Surround each variable with percentage
For example, if you enter the following value in the Log file name field:
the virtual host's HTTP log file will be named:
When the server instance rotates the HTTP log file, the rotated
file name contains the date stamp. For example, if the server
instance rotates the log file on 2 April, 2003 at 10:05 AM, the log
file that contains the old log messages will be named:
If you do not include a time and date stamp, the rotated log
files are numbered in order of creation
filename is the name
configured for the log file. For example:
At the time that you specify, the server rotates the current
log file. If the time that you specify has already past, then
the server starts its file rotation immediately. Thereafter, the
server rotates the log file at an interval that you specify in
Rotation interval. Use the following
java.text.SimpleDateFormat format to specify a
date and time: MM-DD-yyyy-k:mm:ss.
For information about this format, refer to the J2EE Javadoc.
For information on how to set up the logs, see Setting Up HTTP Access Logs by Using Extended Log Format.