Bug 1275744 - Reference MOZ_LOG in xpconnect comments. r=erahm
authorRalph Giles <giles@mozilla.com>
Wed, 25 May 2016 16:31:13 -0700
changeset 377716 c911359b0f25c8163248334bb5febd33f40577b0
parent 377715 3939e0bdda153d89b48285bbc0bad6e0a3ab6a1a
child 377717 dd70b49846ffcb3134994ef36c786932f3425698
push id20857
push userbmo:james@hoppipolla.co.uk
push dateSun, 12 Jun 2016 16:59:39 +0000
reviewerserahm
bugs1275744
milestone50.0a1
Bug 1275744 - Reference MOZ_LOG in xpconnect comments. r=erahm NSPR_LOG_MODULES is deprecated. MozReview-Commit-ID: 7a3EwGBFExT
js/xpconnect/loader/mozJSComponentLoader.cpp
js/xpconnect/src/XPCLog.h
--- a/js/xpconnect/loader/mozJSComponentLoader.cpp
+++ b/js/xpconnect/loader/mozJSComponentLoader.cpp
@@ -66,17 +66,17 @@ static const char kJSCachePrefix[] = "js
 
 /**
  * Buffer sizes for serialization and deserialization of scripts.
  * FIXME: bug #411579 (tune this macro!) Last updated: Jan 2008
  */
 #define XPC_SERIALIZATION_BUFFER_SIZE   (64 * 1024)
 #define XPC_DESERIALIZATION_BUFFER_SIZE (12 * 8192)
 
-// NSPR_LOG_MODULES=JSComponentLoader:5
+// MOZ_LOG=JSComponentLoader:5
 static LazyLogModule gJSCLLog("JSComponentLoader");
 
 #define LOG(args) MOZ_LOG(gJSCLLog, mozilla::LogLevel::Debug, args)
 
 // Components.utils.import error messages
 #define ERROR_SCOPE_OBJ "%s - Second argument must be an object."
 #define ERROR_NOT_PRESENT "%s - EXPORTED_SYMBOLS is not present."
 #define ERROR_NOT_AN_ARRAY "%s - EXPORTED_SYMBOLS is not an array."
--- a/js/xpconnect/src/XPCLog.h
+++ b/js/xpconnect/src/XPCLog.h
@@ -7,22 +7,21 @@
 /* Debug Logging support. */
 
 #ifndef xpclog_h___
 #define xpclog_h___
 
 #include "mozilla/Logging.h"
 
 /*
- * This uses prlog.h See prlog.h for environment settings for output.
- * The module name used here is 'xpclog'. These environment settings
- * should work...
+ * This uses mozilla/Logging.h. The module name used here is 'xpclog'.
+ * These environment settings should work...
  *
- * SET NSPR_LOG_MODULES=xpclog:5
- * SET NSPR_LOG_FILE=logfile.txt
+ * SET MOZ_LOG=xpclog:5
+ * SET MOZ_LOG_FILE=logfile.txt
  *
  * usage:
  *   XPC_LOG_ERROR(("my comment number %d", 5))   // note the double parens
  *
  */
 
 #ifdef DEBUG
 #define XPC_LOG_INTERNAL(number,_args)  \