BizTalk CAT Instrumentation Framework - Trace log message length
the framework seems have limitation on trace message length. e.g., when logging entire xlangmessage xml string , when exceeds length 5000-5500 ignoring whole message , tracing non-printable characters below
[0]1404.10e4::08/22/2016-11:46:54.253 [event]:·-h?
i have intermittent trace logs
[0]1404.1ac4::08/22/2016-13:41:01.774 [event]:badly formed arguments c# decoder
i tried google these topics , there not help, idea , have of have same problem ?
note : using biztalk cat instrumentation framework controller starting trace , formatting it.
hello,
this has been raised before: http://arbiorix-coding.blogspot.in/2010/12/biztalk-cat-instrumentationthe-y-bug.html
currently there no fix available this, a workaround have split message string.
you can download , modify source code per requirement.
https://btscatifcontroller.codeplex.com/sourcecontrol/latest
1: //split long messages avoid "y'?'" bug 2: const string decoration = "..."; 3: string tracemessagepart; 4: const int maxlength = 5000; 5: double partquantity = math.ceiling((double)tracemessage.length / maxlength); 6: int part = 1; 7: int startindex; 8: int substringlength; 9: while (part <= partquantity) 10: { 11: //get sub string 12: startindex = (part - 1)*maxlength; 13: substringlength = math.min(maxlength, tracemessage.length - startindex); 14: tracemessagepart = tracemessage.substring(startindex, substringlength); 15: //add decoration in case message splitted 16: if (partquantity > 1) 17: { 18: //link previous 19: if (part > 1) 20: tracemessagepart = string.format("{0}{1}", decoration, tracemessagepart); 21: //link next 22: if (part < partquantity) 23: tracemessagepart = string.format("{1}{0}", decoration, tracemessagepart); 24: } 25: 26: part++; 27: 28: //add trace code here (ex: tracer.traceerror(tracemessagepart); ) 29: ... 30: 31: } 32:
you can raise issue @ codeplex site
: https://btscatifcontroller.codeplex.com/workitem/list/basic
rachit sikroria (microsoft azure mvp)
BizTalk Server > BizTalk Server General
Comments
Post a Comment