]>
git.saurik.com Git - apple/mdnsresponder.git/blob - mDNSMacOSX/dnssec_v2/dnssec_v2_log.h
5 // Copyright (c) 2020 Apple Inc. All rights reserved.
8 #ifndef DNSSEC_V2_LOG_H
9 #define DNSSEC_V2_LOG_H
11 #include "mDNSEmbeddedAPI.h"
12 #if MDNSRESPONDER_SUPPORTS(APPLE, DNSSECv2)
14 // short version logging for DNSSEC-related functionality
15 #define log_debug(FORMAT, ...) LogRedact(MDNS_LOG_CATEGORY_DNSSEC, MDNS_LOG_DEBUG, FORMAT, ## __VA_ARGS__)
16 #define log_default(FORMAT, ...) LogRedact(MDNS_LOG_CATEGORY_DNSSEC, MDNS_LOG_DEFAULT, FORMAT, ## __VA_ARGS__)
17 #define log_error(FORMAT, ...) LogRedact(MDNS_LOG_CATEGORY_DNSSEC, MDNS_LOG_ERROR, FORMAT, ## __VA_ARGS__)
18 #define log_fault(FORMAT, ...) LogRedact(MDNS_LOG_CATEGORY_DNSSEC, MDNS_LOG_FAULT, FORMAT, ## __VA_ARGS__)
20 #endif // MDNSRESPONDER_SUPPORTS(APPLE, DNSSECv2)
22 #endif // DNSSEC_V2_LOG_H