X-Git-Url: http://git.code-monkey.de/?p=pulseview.git;a=blobdiff_plain;f=pv%2Flogging.cpp;h=b04bd9480ac717b82f34674b53d6c50edc9d3ea0;hp=83577af200cee7afff6b0cb384a485d63883256a;hb=cd0b243a41af5c63f200a647bf435a50f03ad5d6;hpb=4e2195c8d934f7f874b612eaace8c6849e8b475d diff --git a/pv/logging.cpp b/pv/logging.cpp index 83577af..b04bd94 100644 --- a/pv/logging.cpp +++ b/pv/logging.cpp @@ -20,6 +20,8 @@ #include "logging.hpp" #include "globalsettings.hpp" +#include + #ifdef ENABLE_DECODE #include /* First, so we avoid a _POSIX_C_SOURCE warning. */ #endif @@ -28,6 +30,8 @@ #include +using std::cout; +using std::endl; using std::lock_guard; namespace pv { @@ -148,6 +152,8 @@ void Logging::log_pv(QtMsgType type, const QMessageLogContext &context, const QS (void)context; logging.log(msg, LogSource_pv); + + cout << msg.toUtf8().data() << endl; } int Logging::log_sr(void *cb_data, int loglevel, const char *format, va_list args)