Java wrapper for Qt's logging functionality.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic QDebug
qCCritical
(QLoggingCategory category) Logs a critical message into given category using a QDebug streamstatic void
qCCritical
(QLoggingCategory category, String message) Logs a critical message in the logging category.static void
qCCritical
(QLoggingCategory category, String message, Object... args) Logs a critical message with arguments in the logging category.static void
qCCritical
(QLoggingCategory category, Supplier<String> message) Logs a critical message provided bySupplier
in the logging category.static QDebug
qCDebug
(QLoggingCategory category) Logs a debug message into given category using a QDebug streamstatic void
qCDebug
(QLoggingCategory category, String message) Logs a debug message in the logging category.static void
qCDebug
(QLoggingCategory category, String message, Object... args) Logs a debug message with arguments in the logging category.static void
qCDebug
(QLoggingCategory category, Supplier<String> message) Logs a debug message provided bySupplier
in the logging category.static QDebug
qCInfo
(QLoggingCategory category) Logs an info message into given category using a QDebug streamstatic void
qCInfo
(QLoggingCategory category, String message) Logs an info message in the logging category.static void
qCInfo
(QLoggingCategory category, String message, Object... args) Logs an info message with arguments in the logging category.static void
qCInfo
(QLoggingCategory category, Supplier<String> message) Logs a info message provided bySupplier
in the logging category.static QDebug
Logs a critical message using a QDebug streamstatic void
Calls the message handler with the critical message.static void
Calls the message handler with the critical message and arguments.static void
Calls the message handler with the critical message provided bySupplier
.static QDebug
qCWarning
(QLoggingCategory category) Logs a warning message into given category using a QDebug streamstatic void
qCWarning
(QLoggingCategory category, String message) Logs a warning message in the logging category.static void
qCWarning
(QLoggingCategory category, String message, Object... args) Logs a warning message with arguments in the logging category.static void
qCWarning
(QLoggingCategory category, Supplier<String> message) Logs a warning message provided bySupplier
in the logging category.static QDebug
qDebug()
Logs a debug message using a QDebug streamstatic void
Calls the message handler with the debug message.static void
Calls the message handler with the debug message and arguments.static void
Calls the message handler with the debug message provided bySupplier
.static void
Calls the message handler with the fatal message.static void
Calls the message handler with the fatal message and arguments.static void
Calls the message handler with the fatal message provided bySupplier
.static QDebug
qInfo()
Logs an info message using a QDebug streamstatic void
Calls the message handler with the info message.static void
Calls the message handler with the info message and arguments.static void
Calls the message handler with the info message provided bySupplier
.static QtMessageHandler
qInstallExceptionMessageHandler
(QtMsgType... supportedMessageTypes) Installs an exception-throwing message handler as a receiver for message notification.static QtMessageHandler
qInstallLoggingMessageHandler
(QtMsgType... supportedMessageTypes) Installs a message handler using the Java logging feature as a receiver for message notification.static QtMessageHandler
qInstallMessageHandler
(QtMessageHandler handler, QtMsgType... supportedMessageTypes) Installs the specified message handler as a receiver for message notification.static QDebug
qWarning()
Logs a warning message using a QDebug streamstatic void
Calls the message handler with the warning message.static void
Calls the message handler with the warning message and arguments.static void
Calls the message handler with the warning message provided bySupplier
.
-
Method Details
-
qInstallMessageHandler
@QtUninvokable public static QtMessageHandler qInstallMessageHandler(QtMessageHandler handler, QtMsgType... supportedMessageTypes) Installs the specified message handler as a receiver for message notification.
Optionally, you can specify all message types treated by the handler to improve performance. All message types not specified here remain hidden. Without specifying any message type here, all message types are sent to the handler.
- See Also:
-
qInstallExceptionMessageHandler
@QtUninvokable public static QtMessageHandler qInstallExceptionMessageHandler(QtMsgType... supportedMessageTypes) Installs an exception-throwing message handler as a receiver for message notification.
Optionally, you can specify all message types treated by the handler to improve performance. All message types not specified here remain hidden. Without specifying any message type here, all message types are sent to the handler.
Alternatively, you can use the following Java VM argument to let QtJambi install an exception-throwing message handler:
-Dio.qt.exceptions-for-messages=TYPE
where
TYPE
is eitherALL
or a combination ofCRITICAL
,DEBUG
,FATAL
,WARNING
andINFO
.- See Also:
-
qInstallLoggingMessageHandler
@QtUninvokable public static QtMessageHandler qInstallLoggingMessageHandler(QtMsgType... supportedMessageTypes) Installs a message handler using the Java logging feature as a receiver for message notification.
Optionally, you can specify all message types treated by the handler to improve performance. All message types not specified here remain hidden. Without specifying any message type here, all message types are sent to the handler.
Alternatively, you can use the following Java VM argument to let QtJambi install a Java logging message handler:
-Dio.qt.log-messages=TYPE
where
TYPE
is eitherALL
or a combination ofCRITICAL
,DEBUG
,FATAL
,WARNING
andINFO
.- See Also:
-
qWarning
Calls the message handler with the warning message.- Parameters:
message
-
-
qWarning
Calls the message handler with the warning message and arguments.- Parameters:
message
-args
-- See Also:
-
qDebug
Calls the message handler with the debug message.- Parameters:
message
-
-
qDebug
Calls the message handler with the debug message and arguments.- Parameters:
message
-args
-- See Also:
-
qInfo
Calls the message handler with the info message.- Parameters:
message
-
-
qInfo
Calls the message handler with the info message and arguments.- Parameters:
message
-args
-- See Also:
-
qCritical
Calls the message handler with the critical message.- Parameters:
message
-
-
qCritical
Calls the message handler with the critical message and arguments.- Parameters:
message
-args
-- See Also:
-
qFatal
Calls the message handler with the fatal message. If you are using the default message handler this function will abort to create a core dump.- Parameters:
message
-
-
qFatal
Calls the message handler with the fatal message and arguments.- Parameters:
message
-args
-- See Also:
-
qCWarning
Logs a warning message in the logging category.- Parameters:
category
-message
-
-
qCWarning
@QtUninvokable public static void qCWarning(QLoggingCategory category, String message, Object... args) Logs a warning message with arguments in the logging category.- Parameters:
category
-message
-args
-
-
qCDebug
Logs a debug message in the logging category.- Parameters:
category
-message
-
-
qCDebug
@QtUninvokable public static void qCDebug(QLoggingCategory category, String message, Object... args) Logs a debug message with arguments in the logging category.- Parameters:
category
-message
-args
-
-
qCInfo
Logs an info message in the logging category.- Parameters:
category
-message
-
-
qCInfo
Logs an info message with arguments in the logging category.- Parameters:
category
-message
-args
-
-
qCCritical
Logs a critical message in the logging category.- Parameters:
category
-message
-
-
qCCritical
@QtUninvokable public static void qCCritical(QLoggingCategory category, String message, Object... args) Logs a critical message with arguments in the logging category.- Parameters:
category
-message
-args
-
-
qWarning
Calls the message handler with the warning message provided bySupplier
.- Parameters:
message
-
-
qDebug
Calls the message handler with the debug message provided bySupplier
.- Parameters:
message
-
-
qInfo
Calls the message handler with the info message provided bySupplier
.- Parameters:
message
-
-
qCritical
Calls the message handler with the critical message provided bySupplier
.- Parameters:
message
-
-
qFatal
Calls the message handler with the fatal message provided bySupplier
. If you are using the default message handler this function will abort to create a core dump.- Parameters:
message
-
-
qCWarning
Logs a warning message provided bySupplier
in the logging category.- Parameters:
category
-message
-
-
qCDebug
Logs a debug message provided bySupplier
in the logging category.- Parameters:
category
-message
-
-
qCInfo
Logs a info message provided bySupplier
in the logging category.- Parameters:
category
-message
-
-
qCCritical
Logs a critical message provided bySupplier
in the logging category.- Parameters:
category
-message
-
-
qWarning
Logs a warning message using a QDebug stream- Returns:
- QDebug stream
-
qDebug
Logs a debug message using a QDebug stream- Returns:
- QDebug stream
-
qInfo
Logs an info message using a QDebug stream- Returns:
- QDebug stream
-
qCritical
Logs a critical message using a QDebug stream- Returns:
- QDebug stream
-
qCWarning
Logs a warning message into given category using a QDebug stream- Parameters:
category
-- Returns:
- QDebug stream
-
qCDebug
Logs a debug message into given category using a QDebug stream- Parameters:
category
-- Returns:
- QDebug stream
-
qCInfo
Logs an info message into given category using a QDebug stream- Parameters:
category
-- Returns:
- QDebug stream
-
qCCritical
Logs a critical message into given category using a QDebug stream- Parameters:
category
-- Returns:
- QDebug stream
-