Open Source Tomb Raider Engine
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.

Log.cpp 348B

12345678910111213141516171819
  1. /*!
  2. * \file src/Log.cpp
  3. * \brief Global Logging Utility
  4. *
  5. * \author xythobuz
  6. */
  7. #include "global.h"
  8. #include "Log.h"
  9. LogLevel Log::logs[LOG_COUNT] = { 0, 1, 2, 3, 4 };
  10. std::vector<LogEntry> Log::wholeLog;
  11. LogLevel& Log::get(int level) {
  12. assertGreaterThanEqual(level, 0);
  13. assertLessThan(level, LOG_COUNT);
  14. return logs[level];
  15. }