![]() ![]() ![]() ![]() |
Note: Virtual targets are deprecated in WebLogic Server 12.2.1.4.0 and will be removed in the next release.
You can change any of the default log file settings for a virtual target.
To specify HTTP log file settings for a virtual target:
If the table is empty, refer to Create a new virtual target.
HTTP requests for a virtual target are kept in a log file that is separate from the server's log files.
To include a time or date stamp in the file name when the log
file is rotated, in the Log file name field,
add java.text.SimpleDateFormat
variables to the file name. Surround each variable with percentage
(%
) characters.
For example, if you enter the following value in the Log file name field:
access_%yyyy%_%MM%_%dd%_%hh%_%mm%.logthe virtual target's HTTP log file will be named:
access_yyyy_MM_dd_hh_mm.log
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, 2015 at 10:05 AM, the log
file that contains the old log messages will be named: access_2015_04_02_10_05.log.
If you do not include a time and date stamp, the rotated log
files are numbered in order of creation filename
nnnnn
, where filename
is the name
configured for the log file. For example: access.log00007
.
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 on how to set up the logs, see Setting Up HTTP Access Logs by Using Extended Log Format.
![]() |