diff --git a/message_handler.cpp b/message_handler.cpp index f904a4a..8b655bd 100755 --- a/message_handler.cpp +++ b/message_handler.cpp @@ -63,7 +63,7 @@ void atbDebugOutput(QtMsgType type, const QMessageLogContext &context, const QSt switch (type) { case QtDebugMsg: { if (debugLevel == QtDebugMsg) { - snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d DEBG %s\n", + snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d DEBG %s", function, file, context.line, datetime.time().toString(format).toStdString().c_str(), fractional_part, @@ -73,7 +73,7 @@ void atbDebugOutput(QtMsgType type, const QMessageLogContext &context, const QSt } break; case QtInfoMsg: { if (debugLevel == QtInfoMsg || debugLevel == QtDebugMsg) { - snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d INFO %s\n", + snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d INFO %s", function, file, context.line, datetime.time().toString(format).toStdString().c_str(), fractional_part, @@ -83,7 +83,7 @@ void atbDebugOutput(QtMsgType type, const QMessageLogContext &context, const QSt } break; case QtWarningMsg: { if (debugLevel == QtInfoMsg || debugLevel == QtDebugMsg || debugLevel == QtWarningMsg) { - snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d WARN %s\n", + snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d WARN %s", function, file, context.line, datetime.time().toString(format).toStdString().c_str(), fractional_part, @@ -94,7 +94,7 @@ void atbDebugOutput(QtMsgType type, const QMessageLogContext &context, const QSt case QtCriticalMsg: { if (debugLevel == QtInfoMsg || debugLevel == QtDebugMsg || debugLevel == QtWarningMsg || debugLevel == QtCriticalMsg) { - snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d CRIT %s\n", + snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d CRIT %s", function, file, context.line, datetime.time().toString(format).toStdString().c_str(), fractional_part, @@ -106,7 +106,7 @@ void atbDebugOutput(QtMsgType type, const QMessageLogContext &context, const QSt if (debugLevel == QtInfoMsg || debugLevel == QtDebugMsg || debugLevel == QtWarningMsg || debugLevel == QtCriticalMsg || debugLevel == QtFatalMsg) { - snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d FATAL %s\n", + snprintf(buf, sizeof(buf)-1, "%30.30s (%20.20s:%04u) %s.%03d FATAL %s", function, file, context.line, datetime.time().toString(format).toStdString().c_str(), fractional_part,