2022-06-11 15:27:33 +02:00
|
|
|
#ifndef LOGGER_BACKEND_H
|
|
|
|
#define LOGGER_BACKEND_H
|
|
|
|
|
2022-08-17 14:19:55 +02:00
|
|
|
#include "core/string/ustring.h"
|
2022-08-17 13:17:12 +02:00
|
|
|
#include "core/variant/variant.h"
|
2022-06-11 15:27:33 +02:00
|
|
|
|
2022-08-17 13:45:14 +02:00
|
|
|
#include "core/object/reference.h"
|
2022-06-11 15:27:33 +02:00
|
|
|
|
|
|
|
class LoggerBackend : public Reference {
|
|
|
|
GDCLASS(LoggerBackend, Reference);
|
|
|
|
|
|
|
|
public:
|
2022-06-11 16:54:55 +02:00
|
|
|
virtual void log_trace(const String &str);
|
|
|
|
virtual void log_message(const String &str);
|
|
|
|
virtual void log_warning(const String &str);
|
|
|
|
virtual void log_error(const String &str);
|
|
|
|
|
|
|
|
virtual void _log_trace(const String &str);
|
|
|
|
virtual void _log_message(const String &str);
|
|
|
|
virtual void _log_warning(const String &str);
|
|
|
|
virtual void _log_error(const String &str);
|
|
|
|
|
2022-06-11 15:27:33 +02:00
|
|
|
LoggerBackend();
|
|
|
|
~LoggerBackend();
|
|
|
|
|
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|