LogFileImpl.h 982 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #ifndef CRYINCLUDE_EDITOR_LOGFILEIMPL_H
  9. #define CRYINCLUDE_EDITOR_LOGFILEIMPL_H
  10. #pragma once
  11. #include <Include/ILogFile.h>
  12. class CLogFileImpl
  13. : public ILogFile
  14. {
  15. public:
  16. virtual const char* GetLogFileName() override;
  17. //! Write to log spanpshot of current process memory usage.
  18. virtual QString GetMemUsage() override;
  19. virtual void WriteString(const char* pszString) override;
  20. virtual void WriteLine(const char* pszLine) override;
  21. virtual void FormatLine(const char* pszMessage, ...) override;
  22. // logs some useful information
  23. // should be called after CryLog() is available
  24. virtual void AboutSystem() override;
  25. virtual void Warning(const char* format, ...) override;
  26. };
  27. #endif // CRYINCLUDE_EDITOR_LOGFILEIMPL_H