Refactor zone logging functions
lib/dns/zone.c
contains a set of logging functions:
dns_zone_log()
dns_zone_logc()
notify_log()
zone_debuglog()
Implementations of all these functions are similar enough that the common bits can be extracted to a separate function, which would improve clarity and decrease code duplication.