We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2dae85f commit 88eaba5Copy full SHA for 88eaba5
1 file changed
src/main.cpp
@@ -6,7 +6,7 @@ void message_handler(QtMsgType type, const QMessageLogContext &context, const QS
6
QFile log_file("qInfo.log");
7
if (log_file.open(QIODevice::WriteOnly | QIODevice::Append)) {
8
QTextStream stream(&log_file);
9
- QString t_msg = QDateTime::currentDateTime().toString() + " : " + msg;
+ QString t_msg = "[" + QDateTime::currentDateTime().toString() + "] : " + msg;
10
stream << t_msg << Qt::endl;
11
}
12
0 commit comments