* (NULL category = wildcard, NULL module = wildcard) */
isc_log_usechannel(logcfg, "stderr", NULL, NULL);
- /* Tell libdns to register its categories/modules
- * with this log context, and use it as default */
- dns_log_init(ctx.log);
- //dns_log_setcontext(ctx.log);
-
- /* Also make libisc itself use it */
+ // Set this as the default log context
isc_log_setcontext(ctx.log);
+ dns_log_setcontext(ctx.log);
}
static isc_result_t dns_name_from_string(dns_name_t** name, const char *text) {