Index: trunk/BNC/src/upload/bncrtnetuploadcaster.cpp
===================================================================
--- trunk/BNC/src/upload/bncrtnetuploadcaster.cpp	(revision 11179)
+++ trunk/BNC/src/upload/bncrtnetuploadcaster.cpp	(revision 11185)
@@ -330,6 +330,5 @@
 
     if (lines.size() < 2) {
-        emit(newMessage(
-            "bncRtnetUploadCaster: less than 2 lines to decode " + _casterID.toLatin1(), false));
+        emit newLogRecord(t_logRecord::message(t_logRecord::warning, "bncRtnetUploadCaster: less than 2 lines to decode " + _casterID.toLatin1()), false);
         return;
     }
@@ -354,8 +353,7 @@
     epoTime.set(year, month, day, hour, min, sec);
 
-    emit(newMessage(
-        "bncRtnetUploadCaster: decode " + QByteArray(epoTime.datestr().c_str())
+    emit newLogRecord(t_logRecord::message(t_logRecord::info, "bncRtnetUploadCaster: decode " + QByteArray(epoTime.datestr().c_str())
         + " " + QByteArray(epoTime.timestr().c_str()) + " "
-        + _casterID.toLatin1(), false));
+        + _casterID.toLatin1()), false);
 
     struct SsrCorr::ClockOrbit co;
@@ -697,6 +695,6 @@
                         in >> dummy;
                     }
-                    emit(newMessage("                      RTNET format error: "
-                        + lines[ii].toLatin1(), false));
+                    emit newLogRecord(t_logRecord::message(t_logRecord::error, "                      RTNET format error: "
+                        + lines[ii].toLatin1()), false);
                     break;
                 }
@@ -1180,5 +1178,5 @@
 
         if (corrIsOutOfRange(sd)) {
-            emit(newMessage(QString("bncRtnetUploadCaster: SSR parameter is out of its defined range").toLatin1(), false));
+            emit newLogRecord(t_logRecord::message(t_logRecord::warning, QString("bncRtnetUploadCaster: SSR parameter is out of its defined range").toLatin1()), false);
             return failure;
         }
Index: trunk/BNC/src/upload/bncuploadcaster.cpp
===================================================================
--- trunk/BNC/src/upload/bncuploadcaster.cpp	(revision 11179)
+++ trunk/BNC/src/upload/bncuploadcaster.cpp	(revision 11185)
@@ -63,5 +63,6 @@
   _isToBeDeleted = false;
 
-  connect(this, SIGNAL(newMessage(QByteArray,bool)), BNC_CORE, SLOT(slotMessage(const QByteArray,bool)));
+  BNC_CORE->connectMessages(this, "upload");
+  BNC_CORE->connectLogRecords(this, "upload");
 
   if (BNC_CORE->_uploadTableItems.find(_iRow) != BNC_CORE->_uploadTableItems.end()) {
@@ -95,6 +96,6 @@
       // no fallback to Ntrip Version 2: user name and password would be sent
       // unencrypted although an encrypted connection was configured
-      emit(newMessage(_mountpoint.toLatin1() + "@" + _casterOutHost.toLatin1() +
-          ": No SSL support, please install OpenSSL run-time libraries: no upload", true));
+      emit newLogRecord(t_logRecord::message(t_logRecord::error, _mountpoint.toLatin1() + "@" + _casterOutHost.toLatin1() +
+          ": No SSL support, please install OpenSSL run-time libraries: no upload"), true);
     } else {
       _secure = true;
@@ -137,5 +138,5 @@
 void bncUploadCaster::slotProxyAuthenticationRequired(const QNetworkProxy&,
     QAuthenticator*) {
-  emit newMessage("slotProxyAuthenticationRequired", true);
+  emit newLogRecord(t_logRecord::message(t_logRecord::warning, "slotProxyAuthenticationRequired"), true);
 }
 
@@ -171,5 +172,5 @@
       msg += " (ignored as configured)";
     }
-    emit(newMessage(_mountpoint.toLatin1() + "@" + _casterOutHost.toLatin1() + ": " + msg.toLatin1(), true));
+    emit newLogRecord(t_logRecord::message((_sslIgnoreErrors ? t_logRecord::warning : t_logRecord::error), _mountpoint.toLatin1() + "@" + _casterOutHost.toLatin1() + ": " + msg.toLatin1()), true);
   }
 }
@@ -274,5 +275,5 @@
   } else {
     if (_ntripVersion == "1") {
-      emit(newMessage("No proxy support in Ntrip Version 1 upload!", true));
+      emit newLogRecord(t_logRecord::message(t_logRecord::warning, "No proxy support in Ntrip Version 1 upload!"), true);
       delete _outSocket; _outSocket = 0;
       return;
@@ -299,24 +300,24 @@
       if (!statusOk(ans)) {
         int l = ans.indexOf("\r\n", 0);
-        emit(newMessage("Proxy: Connection broken for " + _mountpoint.toLatin1() + "@" +
-            _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1()  + ": "  + ans.left(l), true));
+        emit newLogRecord(t_logRecord::message(t_logRecord::warning, "Proxy: Connection broken for " + _mountpoint.toLatin1() + "@" +
+            _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1()  + ": "  + ans.left(l)), true);
         delete _outSocket; _outSocket = 0;
         return;
       } else {
-        emit(newMessage("Proxy: Connection established for " + _mountpoint.toLatin1()+ "@" +
-            _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1() , true));
+        emit newLogRecord(t_logRecord::message(t_logRecord::info, "Proxy: Connection established for " + _mountpoint.toLatin1()+ "@" +
+            _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1()), true);
         _sOpenTrial = 0;
         _outSocket->setPeerVerifyName(_casterOutHost);
         _outSocket->startClientEncryption();
         if (!_outSocket->waitForEncrypted(timeOut)) {
-          emit(newMessage("Proxy/Caster: Encrypt timeout for " + _mountpoint.toLatin1() + "@"
+          emit newLogRecord(t_logRecord::message(t_logRecord::warning, "Proxy/Caster: Encrypt timeout for " + _mountpoint.toLatin1() + "@"
                           + _casterOutHost.toLatin1() + ":"
                           + QString("%1) ").arg(_casterOutPort).toLatin1()
-                          + _outSocket->errorString().toLatin1(), true));
+                          + _outSocket->errorString().toLatin1()), true);
           delete _outSocket; _outSocket = 0;
           return;
         } else {
-          emit(newMessage("Proxy: SSL handshake completed for " + _mountpoint.toLatin1() + "@" +
-              _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1(), true));
+          emit newLogRecord(t_logRecord::message(t_logRecord::info, "Proxy: SSL handshake completed for " + _mountpoint.toLatin1() + "@" +
+              _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1()), true);
         }
       }
@@ -347,10 +348,10 @@
     delete _outSocket; _outSocket = 0;
     int l = ans.indexOf("\r\n", 0);
-    emit(newMessage("Broadcaster: Connection broken for " + _mountpoint.toLatin1() + "@" +
+    emit newLogRecord(t_logRecord::message(t_logRecord::warning, "Broadcaster: Connection broken for " + _mountpoint.toLatin1() + "@" +
          _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1() +
-         ": " + ans.left(l), true));
-  } else {
-    emit(newMessage("Broadcaster: Connection opened for " + _mountpoint.toLatin1() + "@" +
-        _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1() , true));
+         ": " + ans.left(l)), true);
+  } else {
+    emit newLogRecord(t_logRecord::message(t_logRecord::info, "Broadcaster: Connection opened for " + _mountpoint.toLatin1() + "@" +
+        _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1()), true);
     _sOpenTrial = 0;
   }
@@ -364,22 +365,21 @@
     _outSocket->connectToHostEncrypted(outHost, outPort);
     if (!_outSocket->waitForEncrypted(timeOut)) {
-      emit(newMessage(
-           "Broadcaster: Connect timeout for " + _mountpoint.toLatin1() + "@"
+      emit newLogRecord(t_logRecord::message(t_logRecord::warning, "Broadcaster: Connect timeout for " + _mountpoint.toLatin1() + "@"
               + outHost.toLatin1() + ":"
               + QString("%1) ").arg(outPort).toLatin1()
-              + _outSocket->errorString().toLatin1(), true));
+              + _outSocket->errorString().toLatin1()), true);
       delete _outSocket; _outSocket = 0;
       return false;
     } else {
-      emit(newMessage("Broadcaster: SSL handshake completed for " + _mountpoint.toLatin1() + "@" +
-          _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1(), true));
+      emit newLogRecord(t_logRecord::message(t_logRecord::info, "Broadcaster: SSL handshake completed for " + _mountpoint.toLatin1() + "@" +
+          _casterOutHost.toLatin1() + ":" + QString("%1").arg(_casterOutPort).toLatin1()), true);
     }
   } else {
     _outSocket->connectToHost(outHost, outPort);
     if (!_outSocket->waitForConnected(timeOut)) {
-      emit(newMessage("Broadcaster: Connect timeout for " + _mountpoint.toLatin1() + "@"
+      emit newLogRecord(t_logRecord::message(t_logRecord::warning, "Broadcaster: Connect timeout for " + _mountpoint.toLatin1() + "@"
               + outHost.toLatin1() + ":"
               + QString("%1) ").arg(outPort).toLatin1()
-              + _outSocket->errorString().toLatin1(), true));
+              + _outSocket->errorString().toLatin1()), true);
       delete _outSocket; _outSocket = 0;
       return false;
Index: trunk/BNC/src/upload/bncuploadcaster.h
===================================================================
--- trunk/BNC/src/upload/bncuploadcaster.h	(revision 11179)
+++ trunk/BNC/src/upload/bncuploadcaster.h	(revision 11185)
@@ -10,4 +10,5 @@
 #include <QSslKey>
 #include <iostream>
+#include "bnclog.h"
 
 
@@ -39,4 +40,5 @@
  signals:
   void newMessage(const QByteArray msg, bool showOnScreen);
+  void newLogRecord(t_logRecord rec, bool showOnScreen);
   void newBytes(QByteArray staID, double nbyte);
 
