检查内部日志

您可以在运行时检查Qt Creator 的内部日志信息,而无需重新启动或配置日志规则。日志信息在您开发Qt Creator 、需要调查面临的某些问题或想查看幕后情况时很有帮助。

要打开日志查看器并开始收集日志信息,请选择Tools > > 。 Debug Qt Creator>Show Logs

日志类别查看器对话框

查看器会显示所选日志类别中的日志信息。如果您定义了日志记录规则,它们可能会在启动时列出。否则,类别列表会在您使用Qt Creator 时扩展。

注意: 信息不会缓存,因此查看器只会显示启用类别后记录的信息。

查看日志

要启用日志类别,请在Category 中选择它们。Type 指定要显示的相应类别信息的最低级别。要更改最小级别,请双击该类型并选择其他值。

如果启用了多个类别,则可以为每个类别中的信息指定不同的颜色。双击Color 的值,为类别选择颜色。

要存储有关当前启用类别的信息,请在上下文菜单中选择Save Enabled as Preset 。要加载保存的信息,请选择Update from Preset

要保存显示的信息内容,请选择保存日志 (Save Log)。要复制所有或选定的信息,请在右键菜单中选择Copy AllCopy Selected Logs

要清除显示的信息内容,请选择清晰 (Clear)。

要暂时停止记录,请选择停止记录 (Stop Logging)。要继续记录,请选择开始记录 (Start Logging)。

默认情况下,日志类别和直接来自 Qt 的消息是禁用的。要显示它们,请选择切换 Qt 内部日志 (Toggle Qt Internal Logging)。

新消息会自动将消息显示滚动到底部。要停止自动滚动,请切换自动滚动 (Auto Scroll)。

默认情况下,邮件列表只显示时间戳,不显示邮件类型。要隐藏或显示此信息,请切换时间戳 (Timestamps) 和信息类型 (Message Types)。

Copyright © The Qt Company Ltd. and other contributors. 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.