]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5053] Fixed SysLogAppender incorrect call
authorFrancis Dupont <fdupont@isc.org>
Sun, 22 Jan 2017 15:16:36 +0000 (16:16 +0100)
committerFrancis Dupont <fdupont@isc.org>
Sun, 22 Jan 2017 15:16:36 +0000 (16:16 +0100)
src/lib/log/logger_manager_impl.cc

index a5cf1781e38d92e07a309e8a4de152eab214cca2..6e4186f89e0001b9162dc912bcaed4d8bd8fb70f 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2016 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2017 Internet Systems Consortium, Inc. ("ISC")
 //
 // This Source Code Form is subject to the terms of the Mozilla Public
 // License, v. 2.0. If a copy of the MPL was not distributed with this
@@ -166,8 +166,11 @@ void
 LoggerManagerImpl::createSyslogAppender(log4cplus::Logger& logger,
                                          const OutputOption& opt)
 {
+    log4cplus::helpers::Properties properties;
+    properties.setProperty("ident", getRootLoggerName());
+    properties.setProperty("facility", opt.facility);
     log4cplus::SharedAppenderPtr syslogapp(
-        new log4cplus::SysLogAppender(opt.facility));
+        new log4cplus::SysLogAppender(properties));
     setSyslogAppenderLayout(syslogapp);
     logger.addAppender(syslogapp);
 }