String is truncated in LogMessage

Hi,

I am logging json object string in code. In Service Center when I see general logs, it's showing truncated string logged.

Maximum logged string length seems to be 2000. How to log full string?


Regards,

Nitin

Solution

I would suggest creating your own logging entity and outputting to that and creating a management page to view the log. You can get any size you like then.

Alternatively if you need to use the OutSystems logs then you can do a loop and use the substring command to output the text in chunks of 2000 characters but this would be a rather tedious approach with having to put it back together when you read the logs.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.