Add logging to messages