In Debug level we want to know exact the json contents that came in. Sometimes it is much more than 5000 characters.
Previously this was no problem at all.
Now we have installed 10.2, and in there lines > 5000 characters are only written partialy written to the logfile => unusable for debugging.
How can we change this unwanted behaviour in 10.2 ?
Hi Cristel,
The 5K limit for loglines has been added for very good reasons, including process crashes on huge loglines and the inability to still see other loglines in between larger ones. It is a general protection against rogue logging. The 5K limit is a good compromise which protects the system while still allowing relatively large messages to be logged in case of need.
Some alternatives approaches could include:
- Writing into a separate file aside from the protocol.Log method, e.g. using File.AppendAllText
- Creating a debug textbox parameter in the driver in which the data is dumped, so you can inspect it afterwards
- Writing chunks in a loop (as previously suggested), if the logging really needs to end up in the element logfile