Logger.cpp 317 B

1234567891011121314
  1. #include "utils/Logger.hpp"
  2. Core::Logger::Level Core::Logger::level = Core::Logger::Level::DEBUG;
  3. const char* Core::Logger::getFileName(const char* path) {
  4. int end = 0;
  5. while(path[end] != '\0') {
  6. end++;
  7. }
  8. while(end > 0 && path[end - 1] != '/') {
  9. end--;
  10. }
  11. return path + end;
  12. }