Qt easylogging++ 日志库使用记录

//easylogging++ 
CLOG(INFO,"LOG") << "好的"; //utf-8:  no
CLOG(INFO,"LOG") << QString("好的").toStdString().data(); //utf-8:  no
CLOG(INFO,"LOG") << QString("好的").toLocal8Bit().data(); //utf-8:  yes
CLOG(INFO,"LOG") << QString("好的").toUtf8().data();//utf-8:  no
CLOG(INFO,"LOG") << QString("好的");//utf-8:  yes
qDebug() << "好的"; //utf-8:  yes
qDebug() << QString("好的").toStdString().data(); //utf-8:  yes
qDebug() << QString("好的").toLocal8Bit().data();//utf-8:  no
qDebug() << QString("好的").toUtf8().data(); //utf-8:  yes
qDebug() << QString("好的"); //utf-8:  yes

你可能感兴趣的:(Qt,easylogging++)