MessageHandler implementation that simply logs the Message or its payload depending on the value of the
'shouldLogFullMessage' property. If logging the payload, and it is assignable to Throwable, it will log the stack
trace. By default, it will log the payload only.