VirtualBox

Changeset 101986 in vbox for trunk


Ignore:
Timestamp:
Nov 8, 2023 4:37:05 PM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160083
Message:

libs/xpcom: Convert nsObserverService.cpp from PR_LOG to IPRT's Log, bugref:10545

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/ds/nsObserverService.cpp

    r59793 r101986  
    3737 * ***** END LICENSE BLOCK ***** */
    3838
    39 #include "prlog.h"
    40 #include "prlock.h"
    4139#include "nsIFactory.h"
    4240#include "nsIServiceManager.h"
     
    4846#include "nsIWeakReference.h"
    4947
     48#include <VBox/log.h>
     49
    5050#define NS_WEAK_OBSERVERS
    5151
    5252
    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:5
    60 //    set NSPR_LOG_FILE=nspr.log
    61 //
    62 // this enables PR_LOG_DEBUG level information and places all output in
    63 // the file nspr.log
    64 PRLogModuleInfo* observerServiceLog = nsnull;
    65 #endif /* PR_LOGGING */
    6653
    6754////////////////////////////////////////////////////////////////////////////////
     
    8572nsObserverService::Create(nsISupports* outer, const nsIID& aIID, void* *aInstancePtr)
    8673{
    87 #if defined(PR_LOGGING)
    88     if (!observerServiceLog)
    89         observerServiceLog = PR_NewLogModule("ObserverService");
    90 #endif
    91 
    9274    nsresult rv;
    9375    nsObserverService* os = new nsObserverService();
     
    217199                observer->Observe( aSubject, aTopic, someData );
    218200
    219              PR_LOG(observerServiceLog, PR_LOG_DEBUG, ("Notification - %s\n", aTopic ? aTopic : "undefined"));
    220 
     201             Log(("Notification - %s\n", aTopic ? aTopic : "undefined"));
    221202        }
    222203#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette