new logger

scripts are now more error prone
This commit is contained in:
Eduardo Bart
2011-04-22 15:48:02 -03:00
parent e611734396
commit 96e0b1e909
30 changed files with 181 additions and 178 deletions

View File

@@ -47,7 +47,7 @@ void Fonts::init(const std::string& defaultFontName)
}
if(!m_defaultFont)
logFatal("Could not load the default font \"%s\"\n", defaultFontName.c_str());
flogFatal("FATAL ERROR: Could not load the default font \"%s\"\n", defaultFontName.c_str());
}
Font* Fonts::get(const std::string& fontName)
@@ -58,6 +58,6 @@ Font* Fonts::get(const std::string& fontName)
return (*it).get();
}
logError("Font \"%s\" not found, returing the default one", fontName.c_str());
flogError("ERROR: Font \"%s\" not found, returing the default one", fontName.c_str());
return m_defaultFont.get();
}