tor-browser

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

LoggingConstants.h (1004B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=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
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef MOZILLA_GFX_LOGGING_CONSTANTS_H_
      8 #define MOZILLA_GFX_LOGGING_CONSTANTS_H_
      9 
     10 namespace mozilla {
     11 namespace gfx {
     12 
     13 // Attempting to be consistent with prlog values, but that isn't critical
     14 // (and note that 5 has a special meaning - see the description
     15 // with LoggingPrefs::sGfxLogLevel)
     16 const int LOG_CRITICAL = 1;
     17 const int LOG_WARNING = 2;
     18 const int LOG_DEBUG = 3;
     19 const int LOG_DEBUG_PRLOG = 4;
     20 const int LOG_EVERYTHING = 5;  // This needs to be the highest value
     21 
     22 #if defined(DEBUG)
     23 const int LOG_DEFAULT = LOG_EVERYTHING;
     24 #else
     25 const int LOG_DEFAULT = LOG_CRITICAL;
     26 #endif
     27 
     28 }  // namespace gfx
     29 }  // namespace mozilla
     30 
     31 #endif /* MOZILLA_GFX_LOGGING_CONSTANTS_H_ */