CmDebug.cpp 475 B

12345678910111213141516171819202122232425262728293031
  1. #include "CmDebug.h"
  2. #include "CmLog.h"
  3. namespace CamelotEngine
  4. {
  5. void Debug::logDebug(std::string msg)
  6. {
  7. mLog.logMsg(msg, LL_DEBUG);
  8. }
  9. void Debug::logInfo(std::string msg)
  10. {
  11. mLog.logMsg(msg, LL_INFO);
  12. }
  13. void Debug::logWarning(std::string msg)
  14. {
  15. mLog.logMsg(msg, LL_WARNING);
  16. }
  17. void Debug::logError(std::string msg)
  18. {
  19. mLog.logMsg(msg, LL_ERROR);
  20. }
  21. CM_EXPORT Debug& gDebug()
  22. {
  23. static Debug debug;
  24. return debug;
  25. }
  26. }