28 #include <boost/algorithm/string.hpp>
30 #include "WTerminalColor.h"
32 #include "WLogEntry.h"
34 LogLevel logLevelFromString(
const std::string& str )
37 std::string strLower = str;
38 std::transform( str.begin(), str.end(), strLower.begin(), tolower );
39 if( !strLower.compare(
"debug" ) )
43 else if( !strLower.compare(
"info" ) )
47 else if( !strLower.compare(
"warning" ) )
51 else if( !strLower.compare(
"error" ) )
79 std::string s = format;