summaryrefslogtreecommitdiff
path: root/src/debug/Log.hpp
blob: 2a7ab4259f7bae3e05c0bb3df4b1e508bf682c85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#pragma once
#include <string>

#define LOGMESSAGESIZE 1024

enum LogLevel {
    NONE = -1,
    LOG = 0,
    WARN,
    ERR,
    CRIT
};

namespace Debug {
    void init(std::string IS);
    void log(LogLevel level, const char* fmt, ...);

    inline std::string logFile;
};