summaryrefslogtreecommitdiffstats
path: root/src/Common/Logger.cpp
blob: 6a86d234a9a44ffc7ef4a1b6e73125fb057cf82f (plain)
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
40
41
42
43
44
/*
 * Logger.cpp
 *
 *  Created on: 10.09.2008
 *      Author: dante
 */

#include "Logger.h"
#include <iostream>

namespace Mad {
namespace Common {

void Logger::printMessage(int typeOfMessage, std::string message) {
	switch(typeOfMessage) {
	case CRITICAL:
			std::cout << "CRITICAL: " << message << std::endl;
			break;
	case ERROR:
			std::cout << "ERROR: " << message << std::endl;
			break;
	case WARNING:
		std::cout << "WARNING: " << message << std::endl;
		break;
	case VERBOSE:
			std::cout << "MESSAGE: " << message << std::endl;
			break;
	case DEBUG:
			std::cout << "DEBUG: " << message << std::endl;
			break;
	default:
		std::cout << "MESSAGE: " << message << std::endl;
	}
}

Logger::Logger(int type) {
	this->loggingType = type;
}
Logger::~Logger() {
	// TODO Auto-generated destructor stub
}

}
}