server: log DNS service logs to separate files in production mode and debug mode