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.

85 lines
3.0 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name :
  4. logconst.h
  5. Abstract:
  6. Contains the constant declarations for logging.
  7. Author:
  8. Unknown
  9. --*/
  10. #ifndef _LOGCONST_H_
  11. #define _LOGCONST_H_
  12. //
  13. // Field masks for extended logging
  14. // Fields are logged in order of increasing mask value
  15. //
  16. #define EXTLOG_DATE MD_EXTLOG_DATE
  17. #define EXTLOG_TIME MD_EXTLOG_TIME
  18. #define EXTLOG_CLIENT_IP MD_EXTLOG_CLIENT_IP
  19. #define EXTLOG_USERNAME MD_EXTLOG_USERNAME
  20. #define EXTLOG_SITE_NAME MD_EXTLOG_SITE_NAME
  21. #define EXTLOG_COMPUTER_NAME MD_EXTLOG_COMPUTER_NAME
  22. #define EXTLOG_SERVER_IP MD_EXTLOG_SERVER_IP
  23. #define EXTLOG_METHOD MD_EXTLOG_METHOD
  24. #define EXTLOG_URI_STEM MD_EXTLOG_URI_STEM
  25. #define EXTLOG_URI_QUERY MD_EXTLOG_URI_QUERY
  26. #define EXTLOG_HTTP_STATUS MD_EXTLOG_HTTP_STATUS
  27. #define EXTLOG_WIN32_STATUS MD_EXTLOG_WIN32_STATUS
  28. #define EXTLOG_BYTES_SENT MD_EXTLOG_BYTES_SENT
  29. #define EXTLOG_BYTES_RECV MD_EXTLOG_BYTES_RECV
  30. #define EXTLOG_TIME_TAKEN MD_EXTLOG_TIME_TAKEN
  31. #define EXTLOG_SERVER_PORT MD_EXTLOG_SERVER_PORT
  32. #define EXTLOG_USER_AGENT MD_EXTLOG_USER_AGENT
  33. #define EXTLOG_COOKIE MD_EXTLOG_COOKIE
  34. #define EXTLOG_REFERER MD_EXTLOG_REFERER
  35. #define EXTLOG_PROTOCOL_VERSION MD_EXTLOG_PROTOCOL_VERSION
  36. #define EXTLOG_HOST MD_EXTLOG_HOST
  37. #define DEFAULT_EXTLOG_FIELDS (EXTLOG_CLIENT_IP | \
  38. EXTLOG_TIME | \
  39. EXTLOG_METHOD | \
  40. EXTLOG_URI_STEM | \
  41. EXTLOG_HTTP_STATUS)
  42. #define EXTLOG_VERSION "1.0"
  43. //
  44. // names associated with fields
  45. //
  46. #define EXTLOG_CLIENT_IP_ID "c-ip"
  47. #define EXTLOG_SERVER_IP_ID "s-ip"
  48. #define EXTLOG_DATE_ID "date"
  49. #define EXTLOG_TIME_ID "time"
  50. #define EXTLOG_TIME_TAKEN_ID "time-taken"
  51. #define EXTLOG_METHOD_ID "cs-method"
  52. #define EXTLOG_URI_STEM_ID "cs-uri-stem"
  53. #define EXTLOG_URI_QUERY_ID "cs-uri-query"
  54. #define EXTLOG_HTTP_STATUS_ID "sc-status"
  55. #define EXTLOG_WIN32_STATUS_ID "sc-win32-status"
  56. #define EXTLOG_USERNAME_ID "cs-username"
  57. #define EXTLOG_COOKIE_ID "cs(Cookie)"
  58. #define EXTLOG_USER_AGENT_ID "cs(User-Agent)"
  59. #define EXTLOG_REFERER_ID "cs(Referer)"
  60. #define EXTLOG_COMPUTER_NAME_ID "s-computername"
  61. #define EXTLOG_SITE_NAME_ID "s-sitename"
  62. #define EXTLOG_BYTES_SENT_ID "sc-bytes"
  63. #define EXTLOG_BYTES_RECV_ID "cs-bytes"
  64. #define EXTLOG_SERVER_PORT_ID "s-port"
  65. #define EXTLOG_PROTOCOL_VERSION_ID "cs-version"
  66. #define EXTLOG_HOST_ID "cs-host"
  67. #define EXTLOG_HTTP_SUB_STATUS_ID "sc-substatus"
  68. #endif // _LOGCONST_H_