OpenRaider  0.1.4-dev
Open Source Tomb Raider Game Engine implementation
Log.cpp
Go to the documentation of this file.
1 
8 #include "global.h"
9 #include "Log.h"
10 
11 LogLevel Log::logs[LOG_COUNT] = { 0, 1, 2, 3, 4 };
12 std::vector<LogEntry> Log::wholeLog;
13 
14 LogLevel& Log::get(int level) {
15  assertGreaterThanEqual(level, 0);
16  assertLessThan(level, LOG_COUNT);
17  return logs[level];
18 }
19 
static LogLevel logs[LOG_COUNT]
Definition: Log.h:42
Included everywhere.
static LogLevel & get(int level)
Definition: Log.cpp:14
Global Logging Utility.
#define LOG_COUNT
Definition: Log.h:23
static std::vector< LogEntry > wholeLog
Definition: Log.h:44
#define assertGreaterThanEqual(x, y)
Definition: global.h:170
#define assertLessThan(x, y)
Definition: global.h:146
Definition: Log.h:48