michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef CacheLog__h__ michael@0: #define CacheLog__h__ michael@0: michael@0: #if defined(MOZ_LOGGING) michael@0: #define FORCE_PR_LOG michael@0: #endif michael@0: michael@0: #if defined(PR_LOG) michael@0: #error "If nsCache.h #included it must come before any files that #include prlog.h" michael@0: #endif michael@0: michael@0: #include "prlog.h" michael@0: michael@0: namespace mozilla { michael@0: namespace net { michael@0: michael@0: #if defined(PR_LOGGING) michael@0: extern PRLogModuleInfo* GetCache2Log(); michael@0: #define LOG(x) PR_LOG(GetCache2Log(), PR_LOG_DEBUG, x) michael@0: #else michael@0: #define LOG(x) michael@0: #endif /* PR_LOGGING */ michael@0: michael@0: } // net michael@0: } // mozilla michael@0: michael@0: #endif