将日志文件转换为使用 IBM 独有的消息标识

使用新的或替代的旧消息标识来代替源文件中的消息标识,convertlog 命令创建了一个新日志文件。

开始之前

不推荐使用的功能部件 不推荐使用的功能部件: 在 V6.x 之前,对组件分配了跨越 IBM® 软件产品不必唯一的消息标识。在 V6.0 中, 提供了一个系统属性来将输出日志中的消息标识映射至与其他 IBM 软件产品不冲突的一组 IBM 唯一消息标识(现在所有的 WebSphere® Application Server 消息标识都以 CW 开始)。缺省的运行时行为是仍然使用旧的消息标识。depfeat

关于此任务

要使依赖旧消息标识的日志记录工具的迁移更容易,提供了 convertlog 命令以将日志条目的消息标识从旧标准转换为新标准,或者从新标准转换回旧标准。缺省情况下,配置该软件在记录时使用旧消息标识,但是可以使用 com.ibm.websphere.logging.messageId.version 系统属性更改缺省输出。请参阅Changing the message IDs used in log files,以了解更多信息。

过程

使用 convertlog 命令来转换日志输出:
convertlog <source file name> <destination file name> [options]
        options: -newMessageFormat convert message IDs to CCCCCnnnnS format
                  (cannot be used with -m5)
                 -oldMessageFormat convert message IDs to CCCCnnnnS format
                  (cannot be used with -m6)

结果

在使用 convertlog 命令后,就会有一个具有所选格式的消息标识的新文件。

指示主题类型的图标 任务主题



时间戳记图标 最近一次更新时间: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=ttrb_convertmsgs
文件名:ttrb_convertmsgs.html