Exemple #1
0
QString LogUtil::format( const LogMessage *msg )
{
    QString strMsg{ msg->time().toString( "yyyy-MM-dd hh:mm:ss" )
            + " "
            + getSeverityString( msg->logLevel() )
            + "  "
            + msg->message()
  /*          + " ["
            + msg->moduleName() + " | "
            + QString::number( msg->lineNum()  ) + " | "
            + QString::number( msg->threadId() ) + " | "
            + msg->methodName() + " ] "*/
    };
    return strMsg;
}
Exemple #2
0
CALLBACKTYPE DebugOutput::printDebugOutput(GLenum source, GLenum type, GLuint id, GLenum severity, GLsizei length, const GLchar* msg, const void* userParam) {
	std::cout << "##Debug## " << getSeverityString(severity).c_str() << ": " << getTypeString(type).c_str() << "; from: " << getSourceString(source).c_str() << "\n";
	std::cout << "\tMessage: " << msg << "\n\n";
}