Write domain to log