Add ToString() code generation to allow for logging of messages