1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/netwerk/cache2/CacheLog.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,31 @@ 1.4 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.5 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.7 + 1.8 +#ifndef CacheLog__h__ 1.9 +#define CacheLog__h__ 1.10 + 1.11 +#if defined(MOZ_LOGGING) 1.12 +#define FORCE_PR_LOG 1.13 +#endif 1.14 + 1.15 +#if defined(PR_LOG) 1.16 +#error "If nsCache.h #included it must come before any files that #include prlog.h" 1.17 +#endif 1.18 + 1.19 +#include "prlog.h" 1.20 + 1.21 +namespace mozilla { 1.22 +namespace net { 1.23 + 1.24 +#if defined(PR_LOGGING) 1.25 +extern PRLogModuleInfo* GetCache2Log(); 1.26 +#define LOG(x) PR_LOG(GetCache2Log(), PR_LOG_DEBUG, x) 1.27 +#else 1.28 +#define LOG(x) 1.29 +#endif /* PR_LOGGING */ 1.30 + 1.31 +} // net 1.32 +} // mozilla 1.33 + 1.34 +#endif