netwerk/cache2/CacheLog.cpp

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/netwerk/cache2/CacheLog.cpp	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,30 @@
     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 +#include "CacheLog.h"
     1.9 +
    1.10 +namespace mozilla {
    1.11 +namespace net {
    1.12 +
    1.13 +#if defined(PR_LOGGING)
    1.14 +// Log module for cache2 (2013) cache implementation logging...
    1.15 +//
    1.16 +// To enable logging (see prlog.h for full details):
    1.17 +//
    1.18 +//    set NSPR_LOG_MODULES=cache2:5
    1.19 +//    set NSPR_LOG_FILE=nspr.log
    1.20 +//
    1.21 +// this enables PR_LOG_DEBUG level information and places all output in
    1.22 +// the file nspr.log
    1.23 +PRLogModuleInfo* GetCache2Log()
    1.24 +{
    1.25 +  static PRLogModuleInfo *sLog;
    1.26 +  if (!sLog)
    1.27 +    sLog = PR_NewLogModule("cache2");
    1.28 +  return sLog;
    1.29 +}
    1.30 +#endif
    1.31 +
    1.32 +} // net
    1.33 +} // mozilla

mercurial