logger.h 809 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * 2D Physic Engine
  3. * logger.h: Header for the logger
  4. * Based on pikuma.com Learn Game Physics Engine Programming course.
  5. * Copyright (c) 2021-2022 986-Studio. All rights reserved.
  6. *
  7. * Created by Manoël Trapier on 11/02/2021.
  8. */
  9. #ifndef PHYSICENGINE_LOGGER_H
  10. #define PHYSICENGINE_LOGGER_H
  11. #include <time.h>
  12. typedef enum LogType
  13. {
  14. LOG_LOG = 0,
  15. LOG_ERROR,
  16. LOG_WARNING,
  17. LOG_INFO,
  18. LOG_CRITICAL,
  19. LOG_DEBUG,
  20. } LogType;
  21. class Logger
  22. {
  23. public:
  24. static void Log(const char *message, ...);
  25. static void Error(const char *message, ...);
  26. static void Warning(const char *message, ...);
  27. static void Info(const char *message, ...);
  28. static void Critical(const char *message, ...);
  29. static void Debug(const char *message, ...);
  30. };
  31. #endif /* PHYSICENGINE_LOGGER_H */