Support log attribute on cx:message to send message to the log.
Added type to log option