Maximum length of string allowed on event viewer?

3 Posts
2 Users
0 Likes
18 Views
(@js.lee@arcinfo.com)
Posts: 0
New Member Guest
 

A customer is asking about the maximum length that is allowed for a string when it is written to the event viewer using the LogMessage function. What is the character limit for such a string?

 
Posted : 08/07/2013 3:06 pm
f.martin
(@f-martinarcinfo-com)
Posts: 148
Member Admin
 

Well, sometimes, the best way to know the limits is to try...

I tried (in SvMgr as the only prg inerface with LogMessage is this one...) and I reached up to 128 characters per line.
There is a strange behavior when you're exactly at 128 chars, and over this limit, it truncates the line.

If your customer needs to insert bigger lines, he can generate its own trace file.

 
Posted : 08/07/2013 8:21 pm
(@js.lee@arcinfo.com)
Posts: 0
New Member Guest
 

Alright, thank you. The 128 character limit would explain why the customer was describing that his output was being truncated at certain points. I'll relay your suggestion to him.

 
Posted : 09/07/2013 6:59 am