Technical data

6 Using Log Messages to Manage WebLogic Servers
6-4 Administration Guide
Local Server Log Files
In versions of WebLogic Server prior to 6.0, a new log file is created once the log file
reaches a maximum log file size. This type of automatic log file creation is called log
rotation. In the current release, you have the option of basing log file rotation either on
size or on time. To configure rotation, open the Administration Console and do the
following:
1. In the left pane, select a server.
2. In the right pane, select Logging
Rotation.
3. In the Rotation Type field, select
By Size or By Date.
l By Size: Rotates the log when it exceeds the value entered into the File
Min Size parameter.
l By Date: Rotates the log after the number of minutes specified with the File
Time Span parameter.
4. If you have selected
Size as the Rotation Type, in the File Min Size field specify
the file size (1 - 65535 kilobytes) that triggers the server to move log messages to
a separate file.
After the log file reaches the specified size, the next time the server checks the
file size, it will rename the current log file and create a new one to store
subsequent messages.
5. If you have selected Date as the Rotation Type, set the Rotation Time to the first
date when you want the log file to rotate.
Use the following format:
hh:mm, where hh is the hour in a 24-hour format and
mm is the minute.
If the time that you specify has already past, then the server starts its file rotation
immediately.
6. If you have selected Date as the Rotation Type, set the File Time Span to the
number of hours after which the log file will rotate.
7. To include a time or date stamp in the file name when the log file is rotated, in
the File Name field, add
java.text.SimpleDateFormat variables to the file
name. Surround each variable with percentage (
%) characters.