Commit 1569c977 authored by Nabil Chouika's avatar Nabil Chouika
Browse files

refs#16

In ElemUtils:
- Cosmetics in LoggerManager
parent 38fe0bfb
......@@ -2,8 +2,8 @@ cmake_minimum_required(VERSION 2.6)
project(ElementaryUtils CXX)
# Force C++11
add_definitions(-std=c++11 -pedantic-errors)
# Force C++98 warnings
add_definitions(-std=c++98 -pedantic)
# Tell CMake to run moc when necessary:
set(CMAKE_AUTOMOC ON)
......
......@@ -290,11 +290,11 @@ void LoggerManager::addMessageToBuffer(LoggerMessage loggerMessage) {
if (m_active == true && isLoggable(loggerMessage)) {
if (loggerMessage.getLevel().getType() == LoggerLevel::ERROR) {
m_buffer += Formatter() << "\033[1;31m " << loggerMessage.toString()
<< " \033[0m\n";
m_buffer += Formatter() << "\033[1;31m" << loggerMessage.toString()
<< "\033[0m\n";
} else if (loggerMessage.getLevel().getType() == LoggerLevel::WARN) {
m_buffer += Formatter() << "\033[33m " << loggerMessage.toString()
<< " \033[0m\n";
m_buffer += Formatter() << "\033[33m" << loggerMessage.toString()
<< "\033[0m\n";
} else {
m_buffer += loggerMessage.toString() + '\n';
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment