Use #ifdef ISC_UTIL_TRACEON so that tracing can be turned on per file. e.g. #define ISC_UTIL_TRACEON #include <isc/util.h>