QMessageLogContext Class

QMessageLogContext 클래스는 로그 메시지에 대한 추가 정보를 제공합니다. 더 보기...

헤더: #include <QMessageLogContext>
CMake: find_package(Qt6 REQUIRED COMPONENTS Core)
target_link_libraries(mytarget PRIVATE Qt6::Core)
qmake: QT += core

상세 설명

이 클래스는 qDebug(), qInfo(), qWarning(), qCritical() 또는 qFatal() 메시지가 생성된 소스 코드 위치에 대한 정보를 제공합니다.

참고: 기본적으로 이 정보는 디버그 빌드에만 기록됩니다. QT_MESSAGELOGCONTEXT 또는 QT_NO_MESSAGELOGCONTEXT 을 정의하여 이를 명시적으로 덮어쓸 수 있습니다.

QMessageLogger, QtMessageHandler, qInstallMessageHandler()도 참조하세요 .

© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.