Author |
Message
|
ethirajesh |
Posted: Wed Jan 19, 2011 9:23 pm Post subject: Trace logs in Message Broker |
|
|
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 |
|
 |
mqjeff |
Posted: Thu Jan 20, 2011 4:26 am Post subject: |
|
|
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 |
|
 |
Hitesh Jain |
Posted: Thu Jan 20, 2011 12:28 pm Post subject: |
|
|
Novice
Joined: 24 Dec 2010 Posts: 16
|
Use this it will work
Destination : File |
|
Back to top |
|
 |
Vitor |
Posted: Thu Jan 20, 2011 12:30 pm Post subject: |
|
|
 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 |
|
 |
mqjeff |
Posted: Thu Jan 20, 2011 12:37 pm Post subject: |
|
|
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 |
|
 |
Vitor |
Posted: Thu Jan 20, 2011 12:40 pm Post subject: |
|
|
 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 |
|
 |
ethirajesh |
Posted: Mon Jan 24, 2011 11:16 pm Post subject: CLOSED |
|
|
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 |
|
 |
lancelotlinc |
Posted: Wed May 04, 2011 8:31 am Post subject: |
|
|
 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 |
|
 |
|