summaryrefslogtreecommitdiff
path: root/Log.hh
blob: f18500ca2bb9ed0cbb6cf0bc34c41066684d8d07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef PCC_LOG_H
#define PCC_LOG_H

#include <cstdarg>
#include <cstdio>

namespace pcc {
enum LogLevel { PCC_DEBUG, PCC_INFO, PCC_WARNING, PCC_ERROR };

extern LogLevel CurrentLogLevel;

void SetLogLevel(LogLevel level);

void Log(LogLevel level, const char* format, ...);
} // namespace pcc

#endif