LogFileImpl.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. #include "EditorDefs.h"
  9. #include "LogFileImpl.h"
  10. // Interface which we expose via GetIEditor()
  11. #include "LogFile.h"
  12. const char* CLogFileImpl::GetLogFileName()
  13. {
  14. return CLogFile::GetLogFileName();
  15. }
  16. QString CLogFileImpl::GetMemUsage()
  17. {
  18. return CLogFile::GetMemUsage();
  19. }
  20. void CLogFileImpl::WriteString(const char* pszString)
  21. {
  22. CLogFile::WriteString(pszString);
  23. }
  24. void CLogFileImpl::WriteLine(const char* pszLine)
  25. {
  26. CLogFile::WriteLine(pszLine);
  27. }
  28. void CLogFileImpl::FormatLine(const char* pszMessage, ...)
  29. {
  30. va_list ArgList;
  31. va_start(ArgList, pszMessage);
  32. CLogFile::FormatLineV(pszMessage, ArgList);
  33. va_end(ArgList);
  34. }
  35. void CLogFileImpl::AboutSystem()
  36. {
  37. CLogFile::AboutSystem();
  38. }
  39. void CLogFileImpl::Warning(const char* format, ...)
  40. {
  41. va_list ArgList;
  42. va_start(ArgList, format);
  43. ::WarningV(format, ArgList);
  44. va_end(ArgList);
  45. }