Capture the message passed to the logger