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.

39 lines
1.1 KiB

  1. /*****************************************************************************
  2. *
  3. * Copyright (c) 1999 Microsoft Corporation
  4. *
  5. * FILELOG.H - File Logging
  6. *
  7. * Author: Jeff spencer
  8. *
  9. * Created: 2/19/1999
  10. *
  11. *****************************************************************************/
  12. VOID __cdecl OsFileLogInit();
  13. VOID __cdecl OsFileLogOpen();
  14. VOID __cdecl OsLogPrintf(char *pszFmt, ... );
  15. VOID __cdecl OsFileLogClose(void);
  16. VOID __cdecl OsFileLogFlush(void);
  17. VOID __cdecl OsFileLogShutdown(void);
  18. // File Logging Levels
  19. #define FLL_OFF 0
  20. #define FLL_USER 1 // Simple logging useful for product support people
  21. #define FLL_DETAILED 2 // Detailed logging helpful for debugging
  22. #define LOGMSG(level,format) \
  23. if( FileLogLevel>=(level)){ \
  24. LARGE_INTEGER Time; \
  25. NdisGetCurrentSystemTime(&Time); \
  26. OsLogPrintf format; \
  27. }
  28. //#define LOGHDRS ":::%d:%08x:%08x:%d.%d.%d.%d:"
  29. //#define LOGHDR(id, ip) (id), Time.HighPart, Time.LowPart, IPADDR(ip)
  30. extern ULONG FileLogLevel;