summaryrefslogtreecommitdiffstats
path: root/src/Log.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-24 18:27:05 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-01-24 18:27:05 +0100
commit561aae3b03cec35e14e529f0006155ee3db07df5 (patch)
treebeb5cbb02fcb33aa762afc91cf8d1e29c216c651 /src/Log.cpp
parent8028302eb5b5f6ea77e57887f3b31bd9abafeb27 (diff)
downloaddabmux-561aae3b03cec35e14e529f0006155ee3db07df5.tar.gz
dabmux-561aae3b03cec35e14e529f0006155ee3db07df5.tar.bz2
dabmux-561aae3b03cec35e14e529f0006155ee3db07df5.zip
Initialise syslog earlier, don't leak the syslog backend
Diffstat (limited to 'src/Log.cpp')
-rw-r--r--src/Log.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/Log.cpp b/src/Log.cpp
index 35f3fae..9a58805 100644
--- a/src/Log.cpp
+++ b/src/Log.cpp
@@ -3,7 +3,10 @@
Her Majesty the Queen in Right of Canada (Communications Research
Center Canada)
- Copyright (C), 2014, Matthias P. Braendli, matthias.braendli@mpb.li
+ Copyright (C) 2017
+ Matthias P. Braendli, matthias.braendli@mpb.li
+
+ http://www.opendigitalradio.org
*/
/*
This file is part of ODR-DabMux.
@@ -22,17 +25,13 @@
along with ODR-DabMux. If not, see <http://www.gnu.org/licenses/>.
*/
-#include <list>
-#include <stdarg.h>
-
#include "Log.h"
Logger etiLog;
-
-void Logger::register_backend(LogBackend* backend) {
+void Logger::register_backend(std::shared_ptr<LogBackend> backend)
+{
backends.push_back(backend);
- //log(info, "Registered new logger " + backend->get_name());
}