Refactor vhost logformat