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: #include "CacheLog.h" michael@0: michael@0: namespace mozilla { michael@0: namespace net { michael@0: michael@0: #if defined(PR_LOGGING) michael@0: // Log module for cache2 (2013) cache implementation logging... michael@0: // michael@0: // To enable logging (see prlog.h for full details): michael@0: // michael@0: // set NSPR_LOG_MODULES=cache2:5 michael@0: // set NSPR_LOG_FILE=nspr.log michael@0: // michael@0: // this enables PR_LOG_DEBUG level information and places all output in michael@0: // the file nspr.log michael@0: PRLogModuleInfo* GetCache2Log() michael@0: { michael@0: static PRLogModuleInfo *sLog; michael@0: if (!sLog) michael@0: sLog = PR_NewLogModule("cache2"); michael@0: return sLog; michael@0: } michael@0: #endif michael@0: michael@0: } // net michael@0: } // mozilla