추적 형식

mqsireadlog 명령에 의해 생성된 추적 정보는 XML 표시기(예: 인터넷 브라우저) 또는 파일의 DTD(Document Type Descriptor)를 이해하는 XML 편집기를 사용하지 않으면 읽기가 어렵습니다.

WebSphere Event Broker는 추적 정보를 플랫 파일로 형식화하는 mqsiformatlog 명령을 제공하므로 텍스트 편집기를 사용하여 추적 정보를 볼 수 있습니다.

mqsiformatlog 명령은 mqsireadlog 명령에 의해 생성된 파일을 입력으로 사용하고 XML 로그를 구조화된 레코드로 평면화합니다. 또한, 사용자의 현재 로케일에서 XML 메시지에 대한 삽입을 검색합니다. 형식화된 출력을 파일로 전달하거나 명령행 창에 표시할 수 있습니다.

각 추적 입력 항목에는 시간 소인, 숫자가 있는 WebSphere Event Broker 메시지(예: BIP2622) 및 변수 삽입이 들어 있는 텍스트 문자열이 포함됩니다.

예: Windows에서 사용자 추적 정보 형식화

Windows의 경우, 사용자 추적 시작에서 작성한 추적 파일을 형식화하려면 다음 명령을 입력하십시오.

mqsiformatlog -i trace.xml -o formattrace.log

여기서

-i는 입력 파일을 지정합니다(이 경우, trace.xml).
-o는 출력 파일을 지정합니다(이 경우, formattrace.log).

이 명령은 trace.xml 파일의 추적 정보를 읽어 형식화한 후 formattrace.log 파일에 기록합니다. 다음 예에서는 정상 레벨 추적 파일에 대한 mqsiformatlog 명령의 출력 부분을 보여줍니다.
Timestamps are formatted in local time, 330 minutes past GMT.
2003-06-19 11:30:29.795999     2852   UserTrace   BIP2632I: Message received and 
propagated  to 'out' terminal of MQ Input node 'Video_Test.VIDEO_XML_IN'. 
2003-06-19 11:30:29.795999     2852   UserTrace   BIP6060I: Parser type 'Properties' 
created on behalf of node 'Video_Test.VIDEO_XML_IN' to handle portion of incoming 
message of length
 0 bytes beginning at offset '0'. 
2003-06-19 11:30:29.795999     2852   UserTrace   BIP6061I: Parser type 'MQMD' 
created on behalf of node 'Video_Test.VIDEO_XML_IN' to handle portion of incoming 
message of length '364' bytes beginning at offset '0'. Parser type selected based
on value 'MQHMD' from previous parser. 
2003-06-19 11:30:29.795999     2852   UserTrace   BIP6061I: Parser type 'MRM' 
created on behalf of node 'Video_Test.VIDEO_XML_IN' to handle portion of incoming 
message of length '650' bytes beginning at offset '364'. Parser type selected based
on value 'MRM' from previous parser. 
2003-06-19 11:30:29.795999     2852   UserTrace   BIP2537I: Node 'Video_Test.Extract Fields':
 Executing statement 'BEGIN ... END;' at (.Video_Test_Compute.Main, 2.2). 
2003-06-19 11:30:29.795999     2852   UserTrace   BIP2537I: Node 'Video_Test.Extract Fields':
 Executing statement 'SET OutputRoot = InputRoot;' at (.Video_Test_Compute.Main, 7.3). 
2003-06-19 11:30:29.795999     2852   UserTrace   BIP2538I: Node 'Video_Test.Extract Fields':
 Evaluating expression 'InputRoot' at (.Video_Test_Compute.Main, 7.20). 
2003-06-19 11:30:29.795999     2852   UserTrace   BIP2568I: Node 'Video_Test.Extract Fields':
 Performing tree copy of 'InputRoot' to 'OutputRoot'. 
...
2003-06-19 11:30:29.827999     2852   UserTrace   BIP4124I: Message propagated to 
'out' terminal of Compute node 'Video_Test.Extract Fields'. 
2003-06-19 11:30:29.827999     2852   UserTrace   BIP2638I: The MQ Output node
 'Video_Test.VIDEO_OUT' attempted to write a message to queue 'VIDEO_OUT' connected
 to queue manager ''. The MQCC was '0' and the MQRC was '0'. 
2003-06-19 11:30:29.827999     2852   UserTrace   BIP2622I: Message successfully 
output by output node 'Video_Test.VIDEO_OUT' to queue 'VIDEO_OUT' on queue manager ''. 
Threads encountered in this trace:
2852
관련 개념
추적
주의사항 | 등록상표 | 다운로드 | 라이브러리 | 지원 | 피드백
Copyright IBM Corporation 1999, 2006 마지막 갱신 날짜: 5월 12, 2006
au14310_