-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathLogger.h
39 lines (28 loc) · 828 Bytes
/
Logger.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#ifndef LOGGER_H_INCLUDED
#define LOGGER_H_INCLUDED
#include <stdarg.h>
class LogLevel {
public:
enum Level {
Info = 0,
Debug = 1,
Error = 2,
Critical = 3
};
};
class Logger {
private:
static LogLevel::Level currentLevel;
static void Log(int level, const char* format, va_list ap);
static void Log(int level, const wchar_t* format, va_list ap);
public:
static void Error(const char* format, ...);
static void Error(const wchar_t* format, ...);
static void Critical(const char* format, ...);
static void Critical(const wchar_t* format, ...);
static void Info(const char* format, ...);
static void Info(const wchar_t* format, ...);
static void Debug(const char* format, ...);
static void Debug(const wchar_t* format, ...);
};
#endif //LOGGER_H_INCLUDED