зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1275744 - Reference MOZ_LOG in dom comments. r=erahm
NSPR_LOG_MODULES is deprecated. MozReview-Commit-ID: GgJTpEHyZqJ --HG-- extra : rebase_source : dea80975ee6281aff1476f99f1807f3093af82c9
This commit is contained in:
Родитель
f608c28218
Коммит
d8b5bb25d4
|
@ -21,7 +21,7 @@
|
|||
NS_IMPL_ISUPPORTS(ThirdPartyUtil, mozIThirdPartyUtil)
|
||||
|
||||
//
|
||||
// NSPR_LOG_MODULES=thirdPartyUtil:5
|
||||
// MOZ_LOG=thirdPartyUtil:5
|
||||
//
|
||||
static mozilla::LazyLogModule gThirdPartyLog("thirdPartyUtil");
|
||||
#undef LOG
|
||||
|
|
|
@ -39,8 +39,8 @@ NS_IMPL_CYCLE_COLLECTING_RELEASE(nsDOMCameraManager)
|
|||
/**
|
||||
* Global camera logging object
|
||||
*
|
||||
* Set the NSPR_LOG_MODULES environment variable to enable logging
|
||||
* in a debug build, e.g. NSPR_LOG_MODULES=Camera:5
|
||||
* Set the MOZ_LOG environment variable to enable logging
|
||||
* in a debug build, e.g. MOZ_LOG=Camera:5
|
||||
*/
|
||||
LogModule*
|
||||
GetCameraLog()
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
#include "mozilla/Telemetry.h"
|
||||
#include "mozilla/ArrayUtils.h"
|
||||
|
||||
// NSPR_LOG_MODULES=LoadManager:5
|
||||
// MOZ_LOG=LoadManager:5
|
||||
mozilla::LazyLogModule gLoadManagerLog("LoadManager");
|
||||
#undef LOG
|
||||
#undef LOG_ENABLED
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
#pragma comment(lib, "pdh.lib")
|
||||
#endif
|
||||
|
||||
// NSPR_LOG_MODULES=LoadManager:5
|
||||
// MOZ_LOG=LoadManager:5
|
||||
#undef LOG
|
||||
#undef LOG_ENABLED
|
||||
#define LOG(args) MOZ_LOG(gLoadManagerLog, mozilla::LogLevel::Debug, args)
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
#include <SLES/OpenSLES_Android.h>
|
||||
#include <SLES/OpenSLES_AndroidConfiguration.h>
|
||||
|
||||
// NSPR_LOG_MODULES=OpenSLESProvider:5
|
||||
// MOZ_LOG=OpenSLESProvider:5
|
||||
#undef LOG
|
||||
#undef LOG_ENABLED
|
||||
mozilla::LazyLogModule gOpenSLESProviderLog("OpenSLESProvider");
|
||||
|
|
|
@ -35,7 +35,7 @@ namespace mozilla {
|
|||
|
||||
namespace net {
|
||||
//
|
||||
// set NSPR_LOG_MODULES=TCPSocket:5
|
||||
// set MOZ_LOG=TCPSocket:5
|
||||
//
|
||||
extern LazyLogModule gTCPSocketLog;
|
||||
#define TCPSOCKET_LOG(args) MOZ_LOG(gTCPSocketLog, LogLevel::Debug, args)
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
struct JSContext;
|
||||
|
||||
//
|
||||
// set NSPR_LOG_MODULES=UDPSocket:5
|
||||
// set MOZ_LOG=UDPSocket:5
|
||||
//
|
||||
|
||||
namespace mozilla {
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Basic Plugin Logging Usage Instructions
|
||||
//
|
||||
// 1. Set this environment variable: NSPR_LOG_MODULES=<name>:<level>
|
||||
// 1. Set this environment variable: MOZ_LOG=<name>:<level>
|
||||
|
||||
// Choose the <name> and <level> from this list (no quotes):
|
||||
|
||||
|
@ -33,14 +33,14 @@
|
|||
#define PLUGIN_LOG_NOISY mozilla::LogLevel::Verbose
|
||||
|
||||
// 2. You can combine logs and levels by separating them with a comma:
|
||||
// My favorite Win32 Example: SET NSPR_LOG_MODULES=Plugin:5,PluginNPP:5,PluginNPN:5
|
||||
// My favorite Win32 Example: SET MOZ_LOG=Plugin:5,PluginNPP:5,PluginNPN:5
|
||||
|
||||
// 3. Instead of output going to the console, you can log to a file. Additionally, set the
|
||||
// NSPR_LOG_FILE environment variable to point to the full path of a file.
|
||||
// My favorite Win32 Example: SET NSPR_LOG_FILE=c:\temp\pluginLog.txt
|
||||
// MOZ_LOG_FILE environment variable to point to the full path of a file.
|
||||
// My favorite Win32 Example: SET MOZ_LOG_FILE=c:\temp\pluginLog.txt
|
||||
|
||||
// 4. For complete information see the NSPR Reference:
|
||||
// http://www.mozilla.org/projects/nspr/reference/html/prlog.html
|
||||
// 4. For complete information see the Gecko Developer guide:
|
||||
// https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Gecko_Logging
|
||||
|
||||
|
||||
#ifdef PLUGIN_LOGGING
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#define mozilla_dom_PresentationLog_h
|
||||
|
||||
/*
|
||||
* NSPR_LOG_MODULES=Presentation:5
|
||||
* MOZ_LOG=Presentation:5
|
||||
* For detail, see PresentationService.cpp
|
||||
*/
|
||||
namespace mozilla {
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
To turn on logging for this module, set:
|
||||
|
||||
NSPR_LOG_MODULES nsXULTemplateBuilder:5
|
||||
MOZ_LOG=nsXULTemplateBuilder:5
|
||||
|
||||
*/
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
/**
|
||||
* DOM_CAMERA_LOGI() is enabled in debug builds, and turned on by setting
|
||||
* NSPR_LOG_MODULES=Camera:N environment variable, where N >= 3.
|
||||
* MOZ_LOG=Camera:N environment variable, where N >= 3.
|
||||
*
|
||||
* CNW_LOGE() is always enabled.
|
||||
*/
|
||||
|
|
Загрузка…
Ссылка в новой задаче