2013-09-20 13:11:25 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2014-05-01 15:28:12 +04:00
|
|
|
#ifndef Cache2Log__h__
|
|
|
|
#define Cache2Log__h__
|
2013-09-20 13:11:25 +04:00
|
|
|
|
2015-05-19 21:15:34 +03:00
|
|
|
#include "mozilla/Logging.h"
|
2013-09-20 13:11:25 +04:00
|
|
|
|
|
|
|
namespace mozilla {
|
|
|
|
namespace net {
|
|
|
|
|
|
|
|
extern PRLogModuleInfo* GetCache2Log();
|
2015-06-04 01:25:57 +03:00
|
|
|
#define LOG(x) MOZ_LOG(GetCache2Log(), mozilla::LogLevel::Debug, x)
|
|
|
|
#define LOG_ENABLED() MOZ_LOG_TEST(GetCache2Log(), mozilla::LogLevel::Debug)
|
2013-09-20 13:11:25 +04:00
|
|
|
|
|
|
|
} // net
|
|
|
|
} // mozilla
|
|
|
|
|
|
|
|
#endif
|