Leaked source code of windows server 2003
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.

92 lines
1.8 KiB

  1. /*
  2. - L O G I T . H
  3. -
  4. * Purpose:
  5. * Function and Macro definitions for logging module activity.
  6. *
  7. * Author: Glenn A. Curtis
  8. *
  9. * Comments:
  10. * 10/28/93 glennc original file.
  11. *
  12. */
  13. #ifndef LOGIT_H
  14. #define LOGIT_H
  15. #include <stdio.h>
  16. #include <string.h>
  17. #include <stdarg.h>
  18. #include <time.h>
  19. // #if DBG
  20. void LogInit(void);
  21. void CDECL LogIt( char *, ... );
  22. void LogTime(void);
  23. DWORD LogIn( char * );
  24. void LogOut( char *, DWORD );
  25. // #else
  26. // #undef ENABLE_DEBUG_LOGGING
  27. // #endif // DBG
  28. #ifdef ENABLE_DEBUG_LOGGING
  29. #define DNSLOG_INIT() LogInit()
  30. #else
  31. #define DNSLOG_INIT()
  32. #endif
  33. #ifdef ENABLE_DEBUG_LOGGING
  34. #define DNSLOG_TIME() LogTime()
  35. #else
  36. #define DNSLOG_TIME()
  37. #endif
  38. #ifdef ENABLE_DEBUG_LOGGING
  39. #define DNSLOG_F1( a ) LogIt( a )
  40. #else
  41. #define DNSLOG_F1( a )
  42. #endif
  43. #ifdef ENABLE_DEBUG_LOGGING
  44. #define DNSLOG_F2( a, b ) LogIt( a, b )
  45. #else
  46. #define DNSLOG_F2( a, b )
  47. #endif
  48. #ifdef ENABLE_DEBUG_LOGGING
  49. #define DNSLOG_F3( a, b, c ) LogIt( a, b, c )
  50. #else
  51. #define DNSLOG_F3( a, b, c )
  52. #endif
  53. #ifdef ENABLE_DEBUG_LOGGING
  54. #define DNSLOG_F4( a, b, c, d ) LogIt( a, b, c, d )
  55. #else
  56. #define DNSLOG_F4( a, b, c, d )
  57. #endif
  58. #ifdef ENABLE_DEBUG_LOGGING
  59. #define DNSLOG_F5( a, b, c, d, e ) LogIt( a, b, c, d, e )
  60. #else
  61. #define DNSLOG_F5( a, b, c, d, e )
  62. #endif
  63. #ifdef ENABLE_DEBUG_LOGGING
  64. #define DNSLOG_F6( a, b, c, d, e, f ) LogIt( a, b, c, d, e, f )
  65. #else
  66. #define DNSLOG_F6( a, b, c, d, e, f )
  67. #endif
  68. #ifdef ENABLE_DEBUG_LOGGING
  69. #define LOG_IN( a ) LogIn( a )
  70. #else
  71. #define LOG_IN( a )
  72. #endif
  73. #ifdef ENABLE_DEBUG_LOGGING
  74. #define LOG_OUT( a, b ) LogOut( a, b )
  75. #else
  76. #define LOG_OUT( a, b )
  77. #endif
  78. #endif