Write message info to log.