Multi-line strings possible in the event viewer?

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

A customer is asking if it is possible to write a string to the event viewer on multiple lines using newline characters. It doesn't seem that this is possible, the event viewer shows that newline characters and CRLF ends up being replaced with a simple space.

Is there another way to write a multiline string to the event viewer in one call of LogMessage (or some other method)?

 
Posted : 08/07/2013 3:01 pm
(@r.buisson@arcinfo.com)
Posts: 0
New Member Guest
 

For me it's not possible.

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

Hello,

There no native function to do it. You've to write your own function which will split your input text into several lines.

But first, why does your customer need to write in the event viewer ?

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

And then after that input text is split just call the LogMessage function multiple times for all of the parts, right?

The customer didn't say why he wanted to write to the event viewer, I assumed it was just him wanting a convenient way to view and record his own events.

Thanks.

 
Posted : 09/07/2013 7:35 am