mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-12-21 11:26:53 +01:00
36 lines
633 B
C++
36 lines
633 B
C++
|
|
#ifndef PLOGGER_BIND_H
|
|
#define PLOGGER_BIND_H
|
|
|
|
#include "core/log/logger_backend.h"
|
|
#include "core/reference.h"
|
|
#include "core/typedefs.h"
|
|
#include "core/ustring.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_message(const String &str);
|
|
void log_warning(const String &str);
|
|
void log_error(const String &str);
|
|
|
|
static _PLogger *get_singleton();
|
|
|
|
_PLogger();
|
|
~_PLogger();
|
|
|
|
protected:
|
|
static void _bind_methods();
|
|
|
|
static _PLogger *_self;
|
|
};
|
|
|
|
#endif
|