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

#include <cstdarg>
#include <cstdio>

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

void SetLogLevel(LogLevel level);
LogLevel GetLogLevel();

void SetExecutableName(const char* name);
const char* GetExecutableName();

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

#endif