The Websphere Application
Server (WAS) produces log files from
the IBM® System Storage® Productivity
Center or master
console that
can help with problem determination.
The WAS collects
trace data and writes the information to
log files that are stored in the svcconsole\console\embeddedWAS\profiles\SVCProfile\logs\server1 directory.
The default installation directory is Program Files\IBM\svcconsole.
Enabling Websphere Application Server logging
You
can enable WAS logging and create the trace.log file by performing
the following
steps:
- Open the command-line application.
- Issue
the following command:
enableConsoleTrace
You
can run the enableConsoleTrace command
from any directory as long as svcconsole\console\embeddedWAS\bin
is in your path.
A successfully enabled logging session
is indicated by an entry in the
trace.log file that is similar to the following:
[5/21/03
14:31:13:874 PDT] 2ff3581b ManagerAdmin I TRAS0018I: The trace state
has changed.
The new trace state is ConsoleTrace=all=enabled.
Disabling Websphere Application Server logging
You
can disable the WAS logging by following these steps:
- Open
the command-line application and change to the WAS bin
directory:
cd svcconsole\console\embeddedWAS\bin
- Issue either one of the following commands:
- disableConsoleTrace.bat
- wsadmin -connType NONE -c "$AdminControl setAttribute
[$AdminControl
completeObjectName type=TraceService,process=server1,*] traceSpecification
ConsoleTrace=event=disabled:ConsoleTrace=debug=disabled"
A successfully disabled logging session is indicated
with an entry in
the SystemOut.log file similar to the following:
[5/21/03
14:38:57:400
PDT] 2ff3581b ManagerAdmin I TRAS0018I: The trace state has changed.
The
new trace state is *=all=disabled
Note: Logging
has minimal impact on the performance of the
graphical
user interface application.