Technical data

Setting Up a WebLogic Server Instance as a Windows Service
Administration Guide 2-29
For information on changing the default behavior, see “Changing the Default
Rotation Criteria” on page 2-29.
After you install the service and restart the Windows host, to view the messages that
the server and JVM write to standard out or standard error, do one of the following:
n Make a copy of the file that you specified and view the copy. The Windows file
system cannot write to files that are currently opened.
n To view the messages as they are being printed to the file, open a command
prompt and use the DOS command
tail -f stdout-filename.
Changing the Default Rotation Criteria
By default, every 24 hours the Windows service archives messages to a file named
pathname-yyyy_mm_dd-hh_mm_ss. New messages collect in the file that you
specified when you set up the service.
You can change the time interval or you can set up rotation to occur based on the size
of the message file instead of a time interval.
To change the default criteria at which the Windows service rotates message files:
1. If the Windows service is running, shut it down.
2. Edit the file you specified in the
-log: pathname argument. If a file does not
exist, create one.
For example, if you issued the example command in step 2. in the previous
section, create a file named
d:\bea\wlserver6.1\config\mydomain\myserver-stdout.txt.
3. Do one of the following:
If you want the Windows service to rotate the message file at a specific time
interval regardless of file size, add the following statements at the top of the
file, each statement on a separate line (make sure to press the Enter or Return
key after typing the last line):
# ROTATION_TYPE = TIME
# TIME_START_DATE = date-in-required-format
# TIME_INTERVAL_MINS = number-of-minutes
where
TIME_START_DATE specifies when the first rotation should take place.
If the specified time has already passed, the first rotation occurs when the
time interval specified in
TIME_INTERVAL_MINS expires. You must use the