Technical data

B WebLogic Server Command-Line Interface Reference
B-16 Administration Guide
SERVERLOG
Displays the log file generated on a specific server.
n If you do not specify a URL, the server log for the Administration Server is
displayed by default.
n If you specify a server URL, you can retrieve a log for a non-Administration
Server.
n If you omit the starttime and endtime arguments, a running display of the
entire server log is started.
Syntax
java.weblogic.Admin [Connection and User Credentials Arguments]
SERVERLOG [[starttime]|[endtime]]
Example
In the following example, a request is made for a running display of the log for the
server listening on port 7001 on machine
localhost.
java weblogic.Admin -url localhost:7001
SERVERLOG “2001/12/01 14:00” “2001/12/01 16:00”
The request specifies that the running display should begin at 2:00 p.m. on December
1, 2001, and end at 4:00 p.m. on December 1, 2001.
Argument Definition
starttime
Optional. Earliest time at which messages are to be displayed. If not
specified, messages display starts, by default, when the
SERVERLOG
command is executed. The date format is
yyyy/mm/dd. Time is
indicated using a 24-hour clock. The start date and time are entered inside
quotation marks, in the following format: yyyy/mm/dd hh:mm
endtime
Optional. Latest time at which messages are to be displayed. If not
specified, the default is the time at which the
SERVERLOG command is
executed. The date format is
yyyy/mm/dd. Time is indicated using a
24-hour clock. The end date and time are entered inside quotation marks,
in the following format:
yyyy/mm/dd hh:mm