Counter Strike : Global Offensive Source Code
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.

31 lines
628 B

  1. //============ Copyright (c) Valve Corporation, All rights reserved. ============
  2. //
  3. // Tier1 logging helpers.
  4. //
  5. //===============================================================================
  6. #ifndef TIER1_LOGGING_H
  7. #define TIER1_LOGGING_H
  8. #if defined( COMPILER_MSVC )
  9. #pragma once
  10. #endif
  11. #include "logging.h"
  12. #include "utlbuffer.h"
  13. #include "color.h"
  14. class CBufferedLoggingListener : public ILoggingListener
  15. {
  16. public:
  17. CBufferedLoggingListener();
  18. virtual void Log( const LoggingContext_t *pContext, const tchar *pMessage );
  19. void EmitBufferedSpew();
  20. private:
  21. CUtlBuffer m_StoredSpew;
  22. };
  23. #endif // TIER1_LOGGING_H