- Timestamp:
- Nov 8, 2023 4:37:05 PM (16 months ago)
- svn:sync-xref-src-repo-rev:
- 160083
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/xpcom/ds/nsObserverService.cpp
r59793 r101986 37 37 * ***** END LICENSE BLOCK ***** */ 38 38 39 #include "prlog.h"40 #include "prlock.h"41 39 #include "nsIFactory.h" 42 40 #include "nsIServiceManager.h" … … 48 46 #include "nsIWeakReference.h" 49 47 48 #include <VBox/log.h> 49 50 50 #define NS_WEAK_OBSERVERS 51 51 52 52 53 54 #if defined(PR_LOGGING)55 // Log module for nsObserverService logging...56 //57 // To enable logging (see prlog.h for full details):58 //59 // set NSPR_LOG_MODULES=ObserverService:560 // set NSPR_LOG_FILE=nspr.log61 //62 // this enables PR_LOG_DEBUG level information and places all output in63 // the file nspr.log64 PRLogModuleInfo* observerServiceLog = nsnull;65 #endif /* PR_LOGGING */66 53 67 54 //////////////////////////////////////////////////////////////////////////////// … … 85 72 nsObserverService::Create(nsISupports* outer, const nsIID& aIID, void* *aInstancePtr) 86 73 { 87 #if defined(PR_LOGGING)88 if (!observerServiceLog)89 observerServiceLog = PR_NewLogModule("ObserverService");90 #endif91 92 74 nsresult rv; 93 75 nsObserverService* os = new nsObserverService(); … … 217 199 observer->Observe( aSubject, aTopic, someData ); 218 200 219 PR_LOG(observerServiceLog, PR_LOG_DEBUG, ("Notification - %s\n", aTopic ? aTopic : "undefined")); 220 201 Log(("Notification - %s\n", aTopic ? aTopic : "undefined")); 221 202 } 222 203 #endif
Note:
See TracChangeset
for help on using the changeset viewer.