logger.hpp 376 Bytes
Newer Older
1
2
3
4
5
#ifndef _OLC_LOGGER_HPP_
#define _OLC_LOGGER_HPP_

#include <fstream>

Chao Liu's avatar
Chao Liu committed
6
namespace online_compile {
7
8
9
10
11
12
13
14
15
16
17
18
19
20

enum class LogLevel
{
    Quiet   = 1,
    Error   = 2,
    Warning = 3,
    Info    = 4,
    Info2   = 5
};

std::ostream& fdt_log(LogLevel level, const char* header, const char* content);
std::ostream& fdt_log();
void fdt_log_flush();

Chao Liu's avatar
Chao Liu committed
21
}; // namespace online_compile
22
23

#endif