From: Francis Dupont Date: Sun, 22 Jan 2017 15:16:36 +0000 (+0100) Subject: [5053] Fixed SysLogAppender incorrect call X-Git-Tag: trac5196_base~25^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f2a2579f228e6a8371e2131774b101bdaf06dc73;p=thirdparty%2Fkea.git [5053] Fixed SysLogAppender incorrect call --- diff --git a/src/lib/log/logger_manager_impl.cc b/src/lib/log/logger_manager_impl.cc index a5cf1781e3..6e4186f89e 100644 --- a/src/lib/log/logger_manager_impl.cc +++ b/src/lib/log/logger_manager_impl.cc @@ -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); }