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.

40 lines
911 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996 - 1997.
  5. //
  6. // File: log.hxx
  7. //
  8. // Contents: Abstract interface for a logging mechanism
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // Notes:
  15. //
  16. // History: 8-23-96 benl Created
  17. //
  18. //----------------------------------------------------------------------------
  19. #ifndef _CLOG
  20. #define _CLOG
  21. class CLog {
  22. public:
  23. virtual ~CLog() {}
  24. virtual BOOL Init( LPCTSTR lpLogFile) = 0;
  25. virtual VOID Error( LPCTSTR fmt, ...) = 0;
  26. virtual VOID Warn( LPCTSTR fmt, ...) = 0;
  27. virtual VOID Info( LPCTSTR fmt, ...) = 0;
  28. virtual VOID Pass( LPCTSTR fmt, ...) = 0;
  29. virtual VOID Fail( LPCTSTR fmt, ...) = 0;
  30. virtual VOID Close(BOOL bDelete = FALSE) = 0;
  31. virtual VOID AttachThread() = 0;
  32. virtual VOID DetachThread() = 0;
  33. };
  34. #endif