2022-02-10 10:38:37 +01:00
|
|
|
|
2021-10-31 23:34:08 +01:00
|
|
|
#ifndef LOGGER_H
|
|
|
|
#define LOGGER_H
|
|
|
|
|
2022-02-10 00:50:19 +01:00
|
|
|
#include <cstring>
|
|
|
|
#include <functional>
|
|
|
|
#include <iostream>
|
|
|
|
#include <vector>
|
|
|
|
|
2021-11-19 20:02:16 +01:00
|
|
|
class String;
|
2021-10-31 23:34:08 +01:00
|
|
|
|
2022-02-10 00:50:19 +01:00
|
|
|
class RLogger {
|
|
|
|
public:
|
|
|
|
static void log_trace(const String &str);
|
|
|
|
static void log_trace(const char *str);
|
2022-02-15 11:57:44 +01:00
|
|
|
static void log_trace(const char *p_function, const char *p_file, int p_line, const String &str);
|
|
|
|
static void log_trace(const char *p_function, const char *p_file, int p_line, const char *str);
|
2022-02-10 00:50:19 +01:00
|
|
|
|
|
|
|
static void log_message(const String &str);
|
|
|
|
static void log_message(const char *str);
|
2022-02-15 11:57:44 +01:00
|
|
|
static void log_message(const char *p_function, const char *p_file, int p_line, const String &str);
|
|
|
|
static void log_message(const char *p_function, const char *p_file, int p_line, const char *str);
|
2022-02-10 00:50:19 +01:00
|
|
|
|
|
|
|
static void log_warning(const String &str);
|
|
|
|
static void log_warning(const char *str);
|
2022-02-15 11:57:44 +01:00
|
|
|
static void log_warning(const char *p_function, const char *p_file, int p_line, const String &str);
|
|
|
|
static void log_warning(const char *p_function, const char *p_file, int p_line, const char *str);
|
2022-02-10 00:50:19 +01:00
|
|
|
|
|
|
|
static void log_error(const String &str);
|
|
|
|
static void log_error(const char *str);
|
2022-02-15 11:57:44 +01:00
|
|
|
static void log_error(const char *p_function, const char *p_file, int p_line, const char *str);
|
|
|
|
static void log_error(const char *p_function, const char *p_file, int p_line, const String &str);
|
|
|
|
static void log_msg_error(const char *p_function, const char *p_file, int p_line, const char *p_msg, const char *str);
|
|
|
|
static void log_index_error(const char *p_function, const char *p_file, int p_line, const int index, const int size, const char *str);
|
2022-02-10 00:50:19 +01:00
|
|
|
|
|
|
|
};
|
|
|
|
|
2021-10-31 23:34:08 +01:00
|
|
|
#endif
|