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.

84 lines
1.4 KiB

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name :
  4. errlog.h
  5. Abstract:
  6. Error logging object declarations. This object will log the link
  7. checking error according to the user options (CUserOptions)
  8. Author:
  9. Michael Cheuk (mcheuk)
  10. Project:
  11. Link Checker
  12. Revision History:
  13. --*/
  14. #ifndef _ERRLOG_H_
  15. #define _ERRLOG_H_
  16. //---------------------------------------------------------------------------
  17. // Forward declaration
  18. //
  19. class CLink;
  20. //---------------------------------------------------------------------------
  21. // Error logging class
  22. //
  23. class CErrorLog
  24. {
  25. // Public interfaces
  26. public:
  27. // Destructor
  28. ~CErrorLog();
  29. // Create object
  30. BOOL Create();
  31. // Write to log
  32. void Write(
  33. const CLink& link
  34. );
  35. // Set the current browser name
  36. void SetBrowser(
  37. const CString& strBrowser
  38. )
  39. {
  40. m_strBrowser = strBrowser;
  41. }
  42. // Set the current language name
  43. void SetLanguage(
  44. const CString& strLanguage
  45. )
  46. {
  47. m_strLanguage = strLanguage;
  48. }
  49. // Write the log header & footer
  50. void WriteHeader();
  51. void WriteFooter();
  52. // Protected members
  53. protected:
  54. CFile m_LogFile; // log file object
  55. CString m_strBrowser; // current browser name
  56. CString m_strLanguage; // current language name
  57. }; // class CErrorLog
  58. #endif // _ERRLOG_H_