Bug 1861709 replace AudioCallbackDriver::ThreadRunning() assertions that mean to...
[gecko.git] / netwerk / dns / DNSLogging.h
blob4fd63730caca13d477a0471c9e9f61eada1a8eeb
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"
11 #undef LOG
13 namespace mozilla {
14 namespace net {
15 extern LazyLogModule gHostResolverLog;
16 } // namespace net
17 } // namespace mozilla
19 #define LOG(msg) \
20 MOZ_LOG(mozilla::net::gHostResolverLog, mozilla::LogLevel::Debug, msg)
21 #define LOG1(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