pandemonium_engine/core/log/logger_bind.h

51 lines
1.5 KiB
C++

#ifndef PLOGGER_BIND_H
#define PLOGGER_BIND_H
#include "core/reference.h"
#include "core/typedefs.h"
#include "core/ustring.h"
#include "logger_backend.h"
class String;
class _PLogger : public Object {
GDCLASS(_PLogger, Object);
public:
Ref<LoggerBackend> get_backend();
void set_backend(const Ref<LoggerBackend> &backend);
void log_trace(const String &str);
void log_trace(const char *str);
void log_trace(const char *p_function, const char *p_file, int p_line, const String &str);
void log_trace(const char *p_function, const char *p_file, int p_line, const char *str);
void log_message(const String &str);
void log_message(const char *str);
void log_message(const char *p_function, const char *p_file, int p_line, const String &str);
void log_message(const char *p_function, const char *p_file, int p_line, const char *str);
void log_warning(const String &str);
void log_warning(const char *str);
void log_warning(const char *p_function, const char *p_file, int p_line, const String &str);
void log_warning(const char *p_function, const char *p_file, int p_line, const char *str);
void log_error(const String &str);
void log_error(const char *str);
void log_error(const char *p_function, const char *p_file, int p_line, const char *str);
void log_error(const char *p_function, const char *p_file, int p_line, const String &str);
static _PLogger *get_singleton();
_PLogger();
~_PLogger();
protected:
static void _bind_methods();
static _PLogger *_self;
};
#endif