日志文件说明:
(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