Log functions: clean up redundant GetStdHandle(STD_OUTPUT_HANDLE) calls, call qstringto.StdString().c_str()) explicitly when doing printf().