CmDebug.cpp 603 B

123456789101112131415161718192021222324252627282930313233343536
  1. #include "CmDebug.h"
  2. #include "CmLog.h"
  3. namespace CamelotEngine
  4. {
  5. void Debug::logDebug(std::string msg)
  6. {
  7. mLog.logMsg(msg, "GlobalDebug");
  8. }
  9. void Debug::logInfo(std::string msg)
  10. {
  11. mLog.logMsg(msg, "GlobalInfo");
  12. }
  13. void Debug::logWarning(std::string msg)
  14. {
  15. mLog.logMsg(msg, "GlobalWarning");
  16. }
  17. void Debug::logError(std::string msg)
  18. {
  19. mLog.logMsg(msg, "GlobalError");
  20. }
  21. void Debug::log(const String& msg, const String& channel)
  22. {
  23. mLog.logMsg(msg, channel);
  24. }
  25. CM_UTILITY_EXPORT Debug& gDebug()
  26. {
  27. static Debug debug;
  28. return debug;
  29. }
  30. }