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)?
For me it's not possible.
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 ?
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.


