CacheLog.h 542 B

123456789101112131415161718192021
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. #ifndef Cache2Log__h__
  5. #define Cache2Log__h__
  6. #include "mozilla/Logging.h"
  7. namespace mozilla {
  8. namespace net {
  9. extern LazyLogModule gCache2Log;
  10. #define LOG(x) MOZ_LOG(gCache2Log, mozilla::LogLevel::Debug, x)
  11. #define LOG_ENABLED() MOZ_LOG_TEST(gCache2Log, mozilla::LogLevel::Debug)
  12. } // namespace net
  13. } // namespace mozilla
  14. #endif