QMessageLogger Class | Qt Core 6.8.0 (2025)

Table of Contents
Member Function Documentation [constexpr] QMessageLogger::QMessageLogger() [constexpr] QMessageLogger::QMessageLogger(const char *file, int line, const char *function) [constexpr] QMessageLogger::QMessageLogger(const char *file, int line, const char *function, const char *category) QDebug QMessageLogger::critical() const QDebug QMessageLogger::critical(QMessageLogger::CategoryFunction catFunc) const QDebug QMessageLogger::critical(const QLoggingCategory &cat) const void QMessageLogger::critical(const char *msg, ...) const void QMessageLogger::critical(QMessageLogger::CategoryFunction catFunc, const char *msg, ...) const void QMessageLogger::critical(const QLoggingCategory &cat, const char *msg, ...) const QDebug QMessageLogger::debug() const QDebug QMessageLogger::debug(QMessageLogger::CategoryFunction catFunc) const QDebug QMessageLogger::debug(const QLoggingCategory &cat) const void QMessageLogger::debug(const char *msg, ...) const void QMessageLogger::debug(QMessageLogger::CategoryFunction catFunc, const char *msg, ...) const void QMessageLogger::debug(const QLoggingCategory &cat, const char *msg, ...) const [since 6.5] QDebug QMessageLogger::fatal() const [since 6.5] QDebug QMessageLogger::fatal(QMessageLogger::CategoryFunction catFunc) const [since 6.5] QDebug QMessageLogger::fatal(const QLoggingCategory &cat) const [noexcept] void QMessageLogger::fatal(const char *msg, ...) const [noexcept, since 6.5] void QMessageLogger::fatal(QMessageLogger::CategoryFunction catFunc, const char *msg, ...) const [noexcept, since 6.5] void QMessageLogger::fatal(const QLoggingCategory &cat, const char *msg, ...) const QDebug QMessageLogger::info() const QDebug QMessageLogger::info(QMessageLogger::CategoryFunction catFunc) const QDebug QMessageLogger::info(const QLoggingCategory &cat) const void QMessageLogger::info(const char *msg, ...) const void QMessageLogger::info(QMessageLogger::CategoryFunction catFunc, const char *msg, ...) const void QMessageLogger::info(const QLoggingCategory &cat, const char *msg, ...) const QDebug QMessageLogger::warning() const QDebug QMessageLogger::warning(QMessageLogger::CategoryFunction catFunc) const QDebug QMessageLogger::warning(const QLoggingCategory &cat) const void QMessageLogger::warning(const char *msg, ...) const void QMessageLogger::warning(QMessageLogger::CategoryFunction catFunc, const char *msg, ...) const void QMessageLogger::warning(const QLoggingCategory &cat, const char *msg, ...) const

Member Function Documentation

[constexpr] QMessageLogger::QMessageLogger()

Constructs a default QMessageLogger. See the other constructors to specify context information.

[constexpr] QMessageLogger::QMessageLogger(const char *file, int line, const char *function)

Constructs a QMessageLogger to record log messages for file at line in function. The is equivalent to QMessageLogger(file, line, function, "default")

[constexpr] QMessageLogger::QMessageLogger(const char *file, int line, const char *function, const char *category)

Constructs a QMessageLogger to record category messages for file at line in function.

See also QLoggingCategory.

QDebug QMessageLogger::critical() const

Logs a critical message using a QDebug stream

See also qCritical() and QDebug.

QDebug QMessageLogger::critical(QMessageLogger::CategoryFunction catFunc) const

Logs a critical message into category returned by catFunc using a QDebug stream.

See also qCCritical() and QDebug.

QDebug QMessageLogger::critical(const QLoggingCategory &cat) const

Logs a critical message into category cat using a QDebug stream.

See also qCCritical() and QDebug.

void QMessageLogger::critical(const char *msg, ...) const

Logs a critical message specified with format msg. Additional parameters, specified by msg, may be used.

See also qCritical().

void QMessageLogger::critical(QMessageLogger::CategoryFunction catFunc, const char *msg, ...) const

Logs a critical message specified with format msg for the context returned by catFunc. Additional parameters, specified by msg, may be used.

See also qCCritical().

void QMessageLogger::critical(const QLoggingCategory &cat, const char *msg, ...) const

Logs a critical message specified with format msg for the context cat. Additional parameters, specified by msg, may be used.

See also qCCritical().

QDebug QMessageLogger::debug() const

Logs a debug message using a QDebug stream

See also qDebug() and QDebug.

QDebug QMessageLogger::debug(QMessageLogger::CategoryFunction catFunc) const

Logs a debug message into category returned by catFunc using a QDebug stream.

See also qCDebug() and QDebug.

QDebug QMessageLogger::debug(const QLoggingCategory &cat) const

Logs a debug message into category cat using a QDebug stream.

See also qCDebug() and QDebug.

void QMessageLogger::debug(const char *msg, ...) const

Logs a debug message specified with format msg. Additional parameters, specified by msg, may be used.

See also qDebug().

void QMessageLogger::debug(QMessageLogger::CategoryFunction catFunc, const char *msg, ...) const

Logs a debug message specified with format msg for the context returned by catFunc. Additional parameters, specified by msg, may be used.

See also qCDebug().

void QMessageLogger::debug(const QLoggingCategory &cat, const char *msg, ...) const

Logs a debug message specified with format msg for the context cat. Additional parameters, specified by msg, may be used.

See also qCDebug().

[since 6.5] QDebug QMessageLogger::fatal() const

Logs a fatal message using a QDebug stream.

This function was introduced in Qt 6.5.

See also qFatal() and QDebug.

[since 6.5] QDebug QMessageLogger::fatal(QMessageLogger::CategoryFunction catFunc) const

Logs a fatal message into category returned by catFunc using a QDebug stream.

This function was introduced in Qt 6.5.

See also qCFatal() and QDebug.

[since 6.5] QDebug QMessageLogger::fatal(const QLoggingCategory &cat) const

Logs a fatal message into category cat using a QDebug stream.

This function was introduced in Qt 6.5.

See also qCFatal() and QDebug.

[noexcept] void QMessageLogger::fatal(const char *msg, ...) const

Logs a fatal message specified with format msg. Additional parameters, specified by msg, may be used.

See also qFatal().

[noexcept, since 6.5] void QMessageLogger::fatal(QMessageLogger::CategoryFunction catFunc, const char *msg, ...) const

Logs a fatal message specified with format msg for the context returned by catFunc. Additional parameters, specified by msg, may be used.

This function was introduced in Qt 6.5.

See also qCFatal().

[noexcept, since 6.5] void QMessageLogger::fatal(const QLoggingCategory &cat, const char *msg, ...) const

Logs a fatal message specified with format msg for the context cat. Additional parameters, specified by msg, may be used.

This function was introduced in Qt 6.5.

See also qCFatal().

QDebug QMessageLogger::info() const

Logs an informational message using a QDebug stream.

See also qInfo() and QDebug.

QDebug QMessageLogger::info(QMessageLogger::CategoryFunction catFunc) const

Logs an informational message into category returned by catFunc using a QDebug stream.

See also qCInfo() and QDebug.

QDebug QMessageLogger::info(const QLoggingCategory &cat) const

Logs an informational message into the category cat using a QDebug stream.

See also qCInfo() and QDebug.

void QMessageLogger::info(const char *msg, ...) const

Logs an informational message specified with format msg. Additional parameters, specified by msg, may be used.

See also qInfo().

void QMessageLogger::info(QMessageLogger::CategoryFunction catFunc, const char *msg, ...) const

Logs an informational message specified with format msg for the context returned by catFunc. Additional parameters, specified by msg, may be used.

See also qCInfo().

void QMessageLogger::info(const QLoggingCategory &cat, const char *msg, ...) const

Logs an informational message specified with format msg for the context cat. Additional parameters, specified by msg, may be used.

See also qCInfo().

QDebug QMessageLogger::warning() const

Logs a warning message using a QDebug stream

See also qWarning() and QDebug.

QDebug QMessageLogger::warning(QMessageLogger::CategoryFunction catFunc) const

Logs a warning message into category returned by catFunc using a QDebug stream.

See also qCWarning() and QDebug.

QDebug QMessageLogger::warning(const QLoggingCategory &cat) const

Logs a warning message into category cat using a QDebug stream.

See also qCWarning() and QDebug.

void QMessageLogger::warning(const char *msg, ...) const

Logs a warning message specified with format msg. Additional parameters, specified by msg, may be used.

See also qWarning().

void QMessageLogger::warning(QMessageLogger::CategoryFunction catFunc, const char *msg, ...) const

Logs a warning message specified with format msg for the context returned by catFunc. Additional parameters, specified by msg, may be used.

See also qCWarning().

void QMessageLogger::warning(const QLoggingCategory &cat, const char *msg, ...) const

Logs a warning message specified with format msg for the context cat. Additional parameters, specified by msg, may be used.

See also qCWarning().

QMessageLogger Class | Qt Core 6.8.0 (2025)
Top Articles
Latest Posts
Recommended Articles
Article information

Author: Prof. An Powlowski

Last Updated:

Views: 5804

Rating: 4.3 / 5 (64 voted)

Reviews: 87% of readers found this page helpful

Author information

Name: Prof. An Powlowski

Birthday: 1992-09-29

Address: Apt. 994 8891 Orval Hill, Brittnyburgh, AZ 41023-0398

Phone: +26417467956738

Job: District Marketing Strategist

Hobby: Embroidery, Bodybuilding, Motor sports, Amateur radio, Wood carving, Whittling, Air sports

Introduction: My name is Prof. An Powlowski, I am a charming, helpful, attractive, good, graceful, thoughtful, vast person who loves writing and wants to share my knowledge and understanding with you.