By default, when you start a
WebLogic Server instance in development
mode, the server automatically renames (rotates) its local server
log file as
SERVER_NAME the name of the server. For the remainder
of the server session, log messages accumulate in
.log until the file grows to a
size of 500 kilobytes.
Each time the server log file
reaches this size, the server renames the log file and creates a new
.log to store new messages. By
default, the rotated log files are numbered in order of creation
filename is the name configured
for the log file. You can configure a server instance to include a time
and date stamp in the file name of rotated log files.
By default, when you start a server instance in production mode, the server rotates its local log file whenever the file grows to 5000 kilobytes in size. It does not rotate the local server log file when you start the server. For more information about changing the mode in which a server starts, see Change to production mode.
You can change these default settings for log file rotation. For example, you can change the file size at which the server rotates the log file or you can configure a server to rotate log files based on a time interval. You can also specify the maximum number of rotated files that can accumulate. After the number of log files reaches this number, subsequent file rotations overwrite the oldest log file.
Note: WebLogic Server sets a threshold size limit of 500 MB before it forces a hard rotation to prevent excessive log file growth.
Use the following
hh is the hour in a
24-hour format and
mm is the minute. At
the time that you specify, the server rotates the current log
file. If the time that you specify is already past, the server
starts its file rotation immediately. Thereafter, the server
rotates the log file at an interval that you specify in
Enter an absolute pathname or a pathname that is relative to the server's root directory. By default, the rotated files are stored in the same directory where the log file is stored.
For more information, see A Server's Root Directory.
java.text.SimpleDateFormatvariables to the file name and surround each variable with percentage (
For example, if you enter
the following value in the File Name field:
the server's log file will be named:
When the server instance
rotates the log file, the rotated file name contains the date stamp.
For example, if the server instance rotates its local log file on 4
March, 2005 at 10:15 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
filename is the name
configured for the log file. For example: