--- a/upplay.cpp
+++ b/upplay.cpp
@@ -27,6 +27,7 @@
 #include <QTimer>
 
 #include <libupnpp/upnpplib.hxx>
+#include <libupnpp/log.hxx>
 
 #include "application.h"
 
@@ -85,6 +86,11 @@
     if (argc > 0)
         Usage();
 
+    if (upnppdebug::Logger::getTheLog("/tmp/upplay.log") == 0) {
+        cerr << "Can't initialize log" << endl;
+        return 1;
+    }
+
     LibUPnP *mylib = LibUPnP::getLibUPnP();
     if (!mylib) {
         cerr << "Can't get LibUPnP" << endl;