2017-09-17 13:43:13 +02:00
|
|
|
#pragma once
|
2018-04-02 22:24:54 +02:00
|
|
|
#include <string>
|
2017-09-17 13:43:13 +02:00
|
|
|
|
2018-04-02 22:24:54 +02:00
|
|
|
namespace Log {
|
|
|
|
using std::string;
|
2017-09-17 13:43:13 +02:00
|
|
|
|
2018-04-02 22:24:54 +02:00
|
|
|
enum LogLevel {
|
|
|
|
Error,
|
|
|
|
Warning,
|
|
|
|
Info,
|
|
|
|
Debug,
|
|
|
|
Trace,
|
|
|
|
};
|
|
|
|
|
|
|
|
void set_log_level(LogLevel level);
|
|
|
|
//void enable_log_to_file(bool enable);
|
|
|
|
//void set_log_path(string path);
|
|
|
|
void error(string tag, string message);
|
|
|
|
void warning(string tag, string message);
|
|
|
|
void info(string tag, string message);
|
|
|
|
void debug(string tag, string message);
|
|
|
|
void trace(string tag, string message);
|
|
|
|
}
|