Message truncated due to length, maximum length of 50000 characters exceeded

When I didn’t format the JSON in my console log, it was shown completely. Once I formatted it, it breaks the console log output with this warning:

"... (message truncated due to length, maximum length of 50000 characters exceeded)

Whats that limit about and when does it kick in?
Is this also a limit for the variable?