ISnuviLogger.h 495 B

1234567891011121314151617181920212223
  1. #ifndef ISNUVILOGGER_H
  2. #define ISNUVILOGGER_H
  3. #include <string>
  4. #include <exception>
  5. #include "code/Script.h"
  6. class ISnuviLogger
  7. {
  8. public:
  9. virtual ~ISnuviLogger() = default;
  10. virtual void print(
  11. const std::string* message = nullptr,
  12. const std::exception* ex = nullptr,
  13. const std::string* function = nullptr,
  14. const std::string* scriptname = nullptr,
  15. const Script* sc = nullptr,
  16. int line = -1) = 0;
  17. };
  18. #endif