tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

DNSLogging.h (822B)


      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/. */
      5 
      6 #ifndef mozilla_DNSLogging_h
      7 #define mozilla_DNSLogging_h
      8 
      9 #include "mozilla/Logging.h"
     10 
     11 #undef LOG
     12 
     13 namespace mozilla {
     14 namespace net {
     15 extern LazyLogModule gHostResolverLog;
     16 }  // namespace net
     17 }  // namespace mozilla
     18 
     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)
     25 
     26 #endif  // mozilla_DNSLogging_h