ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportTrace logs in Message Broker

Post new topicReply to topic
Trace logs in Message Broker View previous topic :: View next topic
Author Message
ethirajesh
PostPosted: Wed Jan 19, 2011 9:23 pm Post subject: Trace logs in Message Broker Reply with quote

Apprentice

Joined: 04 Oct 2010
Posts: 46

Hi,

I am logging the exception using TRACE node in MB. But it is not suitable for a new person to read it like a Text file. The snippet of the log is given below. I need to have this log generated using TRACE node and also this should be readable. The properties of the Node are. Destination : User Trace, Pattern : $ROOT, Message Number : 3051. I have tried to create a error message and write to a file using FileOutput Node. But the client don want it like that.

Please let me know how I can i achive this using trace node.


Log Snippet :

`©Z
A/ Û 
  % ?"ß ~ø f ॠ@ ôÿÿÿ | SÐ  ImbTraceNode::writeToLog C o m I b m T r a c e N o d e D S i g n I n f o R e q u e s t M F # F C M C o m p o s i t e _ 1 _ 1 4 . E r r o r H a n d l e r _ M F # F C M C o m p o s i t e _ 1 _ 2 ' S i g n I n f o R e q u e s t M F . E r r o r H a n d l e r _ M F . T r a c e  B I P m s g s Ü @3 F:\build\S000_P\src\DataFlowEngine\ImbTraceNode.cppÉ  ' A p p l i c a t i o n t r a c e o u t p u t f r o m T r a c e N o d e  ™ ( [ ' M Q R O O T ' : 0 x a c 5 e 2 d 8 ]
( 0 x 0 1 0 0 0 0 0 0 : N a m e ) : P r o p e r t i e s = ( [ ' M Q P R O P E R T Y P A R S E R ' : 0 x b b 2 6 3 4 8 ]
( 0 x 0 3 0 0 0 0 0 0 : N a m e V a l u e ) : M e s s a g e S e t = ' ' ( C H A R A C T E R )
( 0 x 0 3 0 0 0 0 0 0 : N a m e V a l u e ) : M e s s a g e T y p e = ' ' ( C H A R A C T E R )
( 0 x 0 3 0 0 0 0 0 0 : N a m e V a l u e ) : M e s s a g e F o r m a t = ' ' ( C H A R A C T E R )
( 0 x 0 3 0 0 0 0 0 0 : N a m e V a l u e ) : E n c o d i n g = 5 4 6 ( I N T E G E R )
( 0 x 0 3 0 0 0 0 0 0 : N a m e V a l u e ) : C o d e d C h a r S e t I d = 4 3 7 ( I N T E G E R )
( 0 x 0 3 0 0 0 0 0 0 : N a m e V a l u e ) : T r a n s a c t i o n a l = T R U E ( B O O L E A N )






Thanks rajesh Ethiraj
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jan 20, 2011 4:26 am Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I think you meant
"${Root}", not "$Root".

The Pattern field will put whatever data in it into the trace file.

Whatever is in the pattern will be written to the trace file.

If you do not want to log the entire ${Root}, then do not use ${Root}.

If you want the trace file to say something like
"Received message id: ABCD124234258091210912010", then put a pattern like

Received message id: ${Root.MQMD.MsgID}

into the trace node.

Read the documentation on trace node again. Carefully.
Back to top
View user's profile Send private message
Hitesh Jain
PostPosted: Thu Jan 20, 2011 12:28 pm Post subject: Reply with quote

Novice

Joined: 24 Dec 2010
Posts: 16

Use this it will work

Destination : File
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu Jan 20, 2011 12:30 pm Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Hitesh Jain wrote:
Use this it will work

Destination : File


If the OP's client didn't want a file written with a FileOutput node, why's the OP's client going to be happy with a file written by a Trace node?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Jan 20, 2011 12:37 pm Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Vitor wrote:
Hitesh Jain wrote:
Use this it will work

Destination : File


If the OP's client didn't want a file written with a FileOutput node, why's the OP's client going to be happy with a file written by a Trace node?


Because a trace node can append to an existing file at a final final path, rather than having to only append to an "incomplete" file that is not at the final location.

I give lancelotlink about another 10 minutes before he comes along with another alternative, regardless of the lack of java skills or interest shown by the OP.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Jan 20, 2011 12:40 pm Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

mqjeff wrote:
Because a trace node can append to an existing file at a final final path, rather than having to only append to an "incomplete" file that is not at the final location.


Point taken.

mqjeff wrote:
I give lancelotlink about another 10 minutes before he comes along with another alternative, regardless of the lack of java skills or interest shown by the OP.


10 minutes? He's busy somewhere then....
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
ethirajesh
PostPosted: Mon Jan 24, 2011 11:16 pm Post subject: CLOSED Reply with quote

Apprentice

Joined: 04 Oct 2010
Posts: 46

Hi Friends,

I have set the Trace Node property "Destination : Local error log". And able to see in the event viewer.

Thanks
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed May 04, 2011 8:31 am Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

Vitor wrote:
mqjeff wrote:
Because a trace node can append to an existing file at a final final path, rather than having to only append to an "incomplete" file that is not at the final location.


Point taken.

mqjeff wrote:
I give lancelotlink about another 10 minutes before he comes along with another alternative, regardless of the lack of java skills or interest shown by the OP.


10 minutes? He's busy somewhere then....


Hey -- I resemble that remark.
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexWebSphere Message Broker (ACE) SupportTrace logs in Message Broker
Jump to:



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP


Theme by Dustin Baccetti
Powered by phpBB 2001, 2002 phpBB Group

Copyright MQSeries.net. All rights reserved.