Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.5 KiB

  1. DEFINE_CPLX_TYPE(TSTR, WPP_LOGWSTR, LPCTSTR, ItemWString, "s", S, 0);
  2. DEFINE_FLAVOR(ts, TSTR,,);
  3. DEFINE_FLAVOR(netrate, DOUBLE,,);
  4. FUNC LogInfo{LEVEL=LogFlagInfo}(MSG,...);
  5. FUNC LogRef{LEVEL=LogFlagRefCount}(MSG,...);
  6. FUNC LogWarning{LEVEL=LogFlagWarning}(MSG,...);
  7. FUNC LogError{LEVEL=LogFlagError}(MSG,...);
  8. FUNC LogPublicApiBegin{LEVEL=LogFlagFunction}(MSG,...);
  9. FUNC LogPublicApiEnd{LEVEL=LogFlagFunction}(MSG,...);
  10. FUNC LogDl{LEVEL=LogFlagDownload}(MSG,...);
  11. FUNC LogSerial{LEVEL=LogFlagSerialize}(MSG,...);
  12. FUNC LogLock{LEVEL=LogFlagLock}(MSG,...);
  13. FUNC LogTask{LEVEL=LogFlagTask}(MSG,...);
  14. FUNC LogService{LEVEL=LogFlagService}(MSG,...);
  15. FUNC LogEntry(MSG,...);
  16. DEFINE_SIMPLE_TYPE( DRIZSEQ,,, "%7!08x!",,);
  17. USEPREFIX(LogInfo, "%!NOW! %!TID! INFO %!FUNC! :");
  18. USEPREFIX(LogWarning, "%!NOW! %!TID! WARNING %!FUNC! (%!FILE! %!LINE!) :");
  19. USEPREFIX(LogError, "%!NOW! %!TID! ERROR %!FUNC! (%!FILE! %!LINE!) :");
  20. USEPREFIX(LogPublicApiBegin, "%!NOW! %!TID! FUNC_BEGIN %!FUNC! this %p :", this);
  21. USEPREFIX(LogPublicApiEnd, "%!NOW! %!TID! FUNC_END %!FUNC! this %p Hr %!winerr!, :", this, Hr);
  22. USEPREFIX(LogRef, "%!NOW! %!TID! REF %!FUNC! this %p :", this);
  23. USEPREFIX(LogLock, "%!NOW! %!TID! LOCK %!FUNC! :");
  24. USEPREFIX(LogTask, "%!NOW! %!TID! TASK %!FUNC! :");
  25. USEPREFIX(LogService, "%!NOW! %!TID! SERVICE %!FUNC! :");
  26. USEPREFIX(LogDl, "%!NOW! %!TID! DOWNLOAD %!FUNC! :");
  27. USEPREFIX(LogSerial, "%!NOW! %!TID! SERIALIZE %!FUNC! :");