switched to c++11
change formatter handling
fix log level enum numbers
add log level in message