WAS:WebSphere日志说明

日志文件说明:

(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)
AAudit
WWarning
XError
EEvent (debug)
DDetail (debug)
TTerminate (exits process)
FFatal (exits process)
IInformation
OProgram output
CConfiguration

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值