1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef mozilla_DNSLogging_h
7 #define mozilla_DNSLogging_h
9 #include "mozilla/Logging.h"
15 extern LazyLogModule gHostResolverLog
;
17 } // namespace mozilla
20 MOZ_LOG(mozilla::net::gHostResolverLog, mozilla::LogLevel::Debug, msg)
22 MOZ_LOG(mozilla::net::gHostResolverLog, mozilla::LogLevel::Error, msg)
23 #define LOG_ENABLED() \
24 MOZ_LOG_TEST(mozilla::net::gHostResolverLog, mozilla::LogLevel::Debug)
26 #endif // mozilla_DNSLogging_h