Added ajax post for log.