tor-browser

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

DataChannelLog.h (981B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=2 et sw=2 tw=80: */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef DataChannelLog_h
      8 #define DataChannelLog_h
      9 
     10 #include "base/basictypes.h"
     11 #include "mozilla/Logging.h"
     12 
     13 namespace mozilla {
     14 extern mozilla::LazyLogModule gDataChannelLog;
     15 }
     16 
     17 #define DC_ERROR(args) \
     18  MOZ_LOG(mozilla::gDataChannelLog, mozilla::LogLevel::Error, args)
     19 
     20 #define DC_WARN(args) \
     21  MOZ_LOG(mozilla::gDataChannelLog, mozilla::LogLevel::Warning, args)
     22 
     23 #define DC_INFO(args) \
     24  MOZ_LOG(mozilla::gDataChannelLog, mozilla::LogLevel::Info, args)
     25 
     26 #define DC_DEBUG(args) \
     27  MOZ_LOG(mozilla::gDataChannelLog, mozilla::LogLevel::Debug, args)
     28 
     29 #define DC_VERBOSE(args) \
     30  MOZ_LOG(mozilla::gDataChannelLog, mozilla::LogLevel::Verbose, args)
     31 
     32 #endif