logger.hpp 366 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef _OLC_LOGGER_HPP_
#define _OLC_LOGGER_HPP_

#include <fstream>

namespace olCompile {

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();

}; // namespace olCompile

#endif