new graphics code compiles... no, it doesn't work yet
#include "Logger.hh"
Logger::Logger (std::ostream &stream, enum LogLevel level, const char *module) :
stream(stream), level(level), module(module)
{
const char *l;
switch (level) {
case FATAL: l = "FATAL"; break;
case ERROR: l = "ERROR"; break;
case WARN: l = "WARN"; break;
case INFO: l = "INFO"; break;
case DEBUG: l = "DEBUG"; break;
default: l = "???"; break;
};
#ifndef NDEBUG
stream << l << " [" << module << "] ";
#endif
}
Logger::~Logger (void) {
#ifndef NDEBUG
stream << std::endl;
#endif
}