Continuing the discussion from: How to fetch truncated custom application logs

Continuing the discussion from How to fetch truncated custom application logs:

I did not see above post in time for me to suggest solution but for anyone who still may be needing a solution, following is what I used.

Create a local function for logging like this:

function log(msg) {
    JSON.stringify(msg).match(/.{1,2000}/g).forEach( (x) => console.log(x))
}

Just replying so this topic can be marked as answered since this is an answer to original post.

This topic was automatically closed 6 days after the last reply. New replies are no longer allowed.