40 #ifndef nsPluginLogging_h__
41 #define nsPluginLogging_h__
49 #ifndef PLUGIN_LOGGING // allow external override
50 #define PLUGIN_LOGGING 1 // master compile-time switch for pluging logging
61 #define NPN_LOG_NAME "PluginNPN"
62 #define NPP_LOG_NAME "PluginNPP"
63 #define PLUGIN_LOG_NAME "Plugin"
66 #define PLUGIN_LOG_ALWAYS 1
67 #define PLUGIN_LOG_BASIC 3
68 #define PLUGIN_LOG_NORMAL 5
69 #define PLUGIN_LOG_NOISY 7
70 #define PLUGIN_LOG_MAX 9
88 static PRLogModuleInfo* gNPNLog;
89 static PRLogModuleInfo* gNPPLog;
90 static PRLogModuleInfo* gPluginLog;
93 #endif // PLUGIN_LOGGING
99 #define NPN_PLUGIN_LOG(a, b) \
101 PR_LOG(nsPluginLogging::gNPNLog, a, b); \
105 #define NPN_PLUGIN_LOG(a, b)
108 #ifdef PLUGIN_LOGGING
109 #define NPP_PLUGIN_LOG(a, b) \
111 PR_LOG(nsPluginLogging::gNPPLog, a, b); \
115 #define NPP_PLUGIN_LOG(a, b)
118 #ifdef PLUGIN_LOGGING
119 #define PLUGIN_LOG(a, b) \
121 PR_LOG(nsPluginLogging::gPluginLog, a, b); \
125 #define PLUGIN_LOG(a, b)
128 #endif // nsPluginLogging_h__