日誌文件說明:
(1).activity.log
打開方式:Log Analyzer in IBM Support Assistant or Log and Trace Analyzer(LTA) in Application Server Toolkit(AST)
-consolidates key messages on a particular node(the WAS messages that are written to the System.out stream)
-contains extended service information
(2).SystemOut.log and SystemErr.log
Stardard JVM output and error log
(3).startServer.log and stopServer.log
Startup and shutdown of the application servers
(4).trace.log
Application server code-level events
output from diagnostic trace
(5).http_plugin.log
Location:<plugin_root>/logs/<webserver_name>
(6). native_stdout.log and native_stderr.log
Native code,JVM
(7). FFDC(First failure data capture)
可配置log保存天數
Location:<profile_root>/logs/ffdc/
屬性文件包括:ffdcRun.properties exceptionFileMaximunAge
WAS中組件日誌的位置:
(1).HTTP plug-in
Location: Web 服務器 > web_server_name > 插件屬性
log: <plugins_root>/logs/<web_server_name>/http_plugin.log
(2).Embedded HTTP Server
Location: 應用程序服務器 > server_name > Web 容器 > HTTP 錯誤和 NCSA 訪問記錄
log: ${SERVER_LOG_ROOT}/http_access.log 和 ${SERVER_LOG_ROOT}/http_error.log
(3).trace.log
Location:記錄和跟蹤 > server_name > 診斷跟蹤服務
log: ${SERVER_LOG_ROOT}/trace.log
說明: <component / group> = <log level>
log level:detail, info, fatal, severe記錄在SystemOut.log中, 只有fine, finer, finest,是記錄在trace.log中
WAS5.x 和WAS6.x中記日誌的不同
WAS5.x: com.ibm.*=all=enabled 或 com.ibm.*=all=disabled
WAS6.x: com.ibm.*=info 或 com.ibm.*=all
使用wasadmin改配置
set server [$AdminConfig getid /Cell:<mycell>/Node:<mynode>/Server:<myserver>/]
set tc [$AdminConfig list TraceService $server]
$AdminConfig modify $tc {{startupTraceSpecification com.ibm.ws.*=all=enabled}}
$AdminConfig save
使用wasadmin改運行
set ts [$AdminControl queryNames type=TraceService,node=<mynode>,process=<myserver>,*]
$AdminControl setAttribute $ts traceSpecification com.ibm.ws.*=all=enabled
日誌中字符的含義
符號 含義 > Entry to a method (debug) < Exit a method (debug) A Audit W Warning X Error E Event (debug) D Detail (debug) T Terminate (exits process) F Fatal (exits process) I Information O Program output C Configuration