summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrancis Dupont <fdupont@isc.org>2018-12-05 23:19:38 +0100
committerFrancis Dupont <fdupont@isc.org>2018-12-06 08:19:34 -0500
commit5658cd9e11b88e5f4784be72e0b192b9aa0aa2ba (patch)
tree33aa8f2dfc16877fdbe156486fc0ebcbb3d9afe3
parent1ea0de3c7557402db817e262901c0616586c982b (diff)
[174-warning-for-unused-trace-levels] Made extern debug levels186-add-kea-netconf-daemon-to-keactrl_base
-rw-r--r--src/bin/dhcp4/dhcp4_log.cc11
-rw-r--r--src/bin/dhcp4/dhcp4_log.h16
-rw-r--r--src/bin/dhcp6/dhcp6_log.cc11
-rw-r--r--src/bin/dhcp6/dhcp6_log.h18
-rw-r--r--src/bin/netconf/netconf_log.cc5
-rw-r--r--src/bin/netconf/netconf_log.h6
-rw-r--r--src/lib/config/config_log.cc4
-rw-r--r--src/lib/config/config_log.h4
-rw-r--r--src/lib/database/db_log.cc3
-rw-r--r--src/lib/database/db_log.h2
-rw-r--r--src/lib/dhcpsrv/alloc_engine_log.cc8
-rw-r--r--src/lib/dhcpsrv/alloc_engine_log.h10
-rw-r--r--src/lib/dhcpsrv/dhcpsrv_log.cc9
-rw-r--r--src/lib/dhcpsrv/dhcpsrv_log.h12
-rw-r--r--src/lib/dhcpsrv/hosts_log.cc8
-rw-r--r--src/lib/dhcpsrv/hosts_log.h10
-rw-r--r--src/lib/eval/eval_log.cc5
-rw-r--r--src/lib/eval/eval_log.h6
-rw-r--r--src/lib/hooks/hooks_log.cc6
19 files changed, 102 insertions, 52 deletions
diff --git a/src/bin/dhcp4/dhcp4_log.cc b/src/bin/dhcp4/dhcp4_log.cc
index 4f82a1b3a9..315ca35a22 100644
--- a/src/bin/dhcp4/dhcp4_log.cc
+++ b/src/bin/dhcp4/dhcp4_log.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2018 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
@@ -14,6 +14,15 @@
namespace isc {
namespace dhcp {
+extern const int DBG_DHCP4_START = isc::log::DBGLVL_START_SHUT;
+extern const int DBG_DHCP4_SHUT = isc::log::DBGLVL_START_SHUT;
+extern const int DBG_DHCP4_COMMAND = isc::log::DBGLVL_COMMAND;
+extern const int DBG_DHCP4_BASIC = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DBG_DHCP4_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DBG_DHCP4_BASIC_DATA = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int DBG_DHCP4_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int DBG_DHCP4_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+
const char* DHCP4_ROOT_LOGGER_NAME = "kea-dhcp4";
const char* DHCP4_APP_LOGGER_NAME = "dhcp4";
const char* DHCP4_BAD_PACKET_LOGGER_NAME = "bad-packets";
diff --git a/src/bin/dhcp4/dhcp4_log.h b/src/bin/dhcp4/dhcp4_log.h
index dd54756da7..3b03c2aac2 100644
--- a/src/bin/dhcp4/dhcp4_log.h
+++ b/src/bin/dhcp4/dhcp4_log.h
@@ -21,19 +21,19 @@ namespace dhcp {
//@{
/// @brief Debug level used to log information during server startup.
-const int DBG_DHCP4_START = isc::log::DBGLVL_START_SHUT;
+extern const int DBG_DHCP4_START;
/// @brief Debug level used to log information during server shutdown.
-const int DBG_DHCP4_SHUT = isc::log::DBGLVL_START_SHUT;
+extern const int DBG_DHCP4_SHUT;
/// @brief Debug level used to log receiving commands.
-const int DBG_DHCP4_COMMAND = isc::log::DBGLVL_COMMAND;
+extern const int DBG_DHCP4_COMMAND;
/// @brief Debug level used to trace basic operations within the code.
-const int DBG_DHCP4_BASIC = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DBG_DHCP4_BASIC;
/// @brief Debug level used to trace hook related operations
-const int DBG_DHCP4_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DBG_DHCP4_HOOKS;
/// @brief Debug level used to log the traces with some basic data.
///
@@ -42,7 +42,7 @@ const int DBG_DHCP4_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
/// more detailed information in cases when it is warranted and the
/// extraction of the data doesn't impact the server's performance
/// significantly.
-const int DBG_DHCP4_BASIC_DATA = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int DBG_DHCP4_BASIC_DATA;
/// @brief Debug level used to trace detailed errors.
///
@@ -50,10 +50,10 @@ const int DBG_DHCP4_BASIC_DATA = isc::log::DBGLVL_TRACE_BASIC_DATA;
/// packets. (These are not logged at severities of WARN or higher for fear
/// that a set of deliberately invalid packets set to the server could overwhelm
/// the logging.)
-const int DBG_DHCP4_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int DBG_DHCP4_DETAIL;
/// @brief This level is used to log the contents of packets received and sent.
-const int DBG_DHCP4_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int DBG_DHCP4_DETAIL_DATA;
//@}
diff --git a/src/bin/dhcp6/dhcp6_log.cc b/src/bin/dhcp6/dhcp6_log.cc
index 98e319457e..31b9e526ad 100644
--- a/src/bin/dhcp6/dhcp6_log.cc
+++ b/src/bin/dhcp6/dhcp6_log.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2018 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
@@ -14,6 +14,15 @@
namespace isc {
namespace dhcp {
+extern const int DBG_DHCP6_START = isc::log::DBGLVL_START_SHUT;
+extern const int DBG_DHCP6_SHUT = isc::log::DBGLVL_START_SHUT;
+extern const int DBG_DHCP6_COMMAND = isc::log::DBGLVL_COMMAND;
+extern const int DBG_DHCP6_BASIC = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DBG_DHCP6_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DBG_DHCP6_BASIC_DATA = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int DBG_DHCP6_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int DBG_DHCP6_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+
const char* DHCP6_ROOT_LOGGER_NAME = "kea-dhcp6";
const char* DHCP6_APP_LOGGER_NAME = "dhcp6";
const char* DHCP6_BAD_PACKET_LOGGER_NAME = "bad-packets";
diff --git a/src/bin/dhcp6/dhcp6_log.h b/src/bin/dhcp6/dhcp6_log.h
index 32241318b3..2ce7201e12 100644
--- a/src/bin/dhcp6/dhcp6_log.h
+++ b/src/bin/dhcp6/dhcp6_log.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2012-2015,2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2018 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
@@ -18,19 +18,19 @@ namespace dhcp {
//@{
/// @brief Debug level used to log information during server startup.
-const int DBG_DHCP6_START = isc::log::DBGLVL_START_SHUT;
+extern const int DBG_DHCP6_START;
/// @brief Debug level used to log information during server shutdown.
-const int DBG_DHCP6_SHUT = isc::log::DBGLVL_START_SHUT;
+extern const int DBG_DHCP6_SHUT;
/// @brief Debug level used to log receiving commands.
-const int DBG_DHCP6_COMMAND = isc::log::DBGLVL_COMMAND;
+extern const int DBG_DHCP6_COMMAND;
/// @brief Debug level used to trace basic operations within the code.
-const int DBG_DHCP6_BASIC = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DBG_DHCP6_BASIC;
/// @brief Debug level used to trace hook related operations
-const int DBG_DHCP6_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DBG_DHCP6_HOOKS;
/// @brief Debug level used to log the traces with some basic data.
///
@@ -39,7 +39,7 @@ const int DBG_DHCP6_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
/// more detailed information in cases when it is warranted and the
/// extraction of the data doesn't impact the server's performance
/// significantly.
-const int DBG_DHCP6_BASIC_DATA = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int DBG_DHCP6_BASIC_DATA;
/// @brief Debug level used to trace detailed errors.
///
@@ -47,10 +47,10 @@ const int DBG_DHCP6_BASIC_DATA = isc::log::DBGLVL_TRACE_BASIC_DATA;
/// packets. (These are not logged at severities of WARN or higher for fear
/// that a set of deliberately invalid packets set to the server could overwhelm
/// the logging.)
-const int DBG_DHCP6_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int DBG_DHCP6_DETAIL;
/// @brief This level is used to log the contents of packets received and sent.
-const int DBG_DHCP6_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int DBG_DHCP6_DETAIL_DATA;
//@}
diff --git a/src/bin/netconf/netconf_log.cc b/src/bin/netconf/netconf_log.cc
index f4b9f497b9..d44463e430 100644
--- a/src/bin/netconf/netconf_log.cc
+++ b/src/bin/netconf/netconf_log.cc
@@ -14,6 +14,11 @@
namespace isc {
namespace netconf {
+extern const int NETCONF_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int NETCONF_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int NETCONF_DBG_TRACE_DETAIL_DATA =
+ isc::log::DBGLVL_TRACE_DETAIL_DATA;
+
const char* NETCONF_LOGGER_NAME = "netconf";
isc::log::Logger netconf_logger(NETCONF_LOGGER_NAME);
diff --git a/src/bin/netconf/netconf_log.h b/src/bin/netconf/netconf_log.h
index 80e7ce0c70..72a51d0417 100644
--- a/src/bin/netconf/netconf_log.h
+++ b/src/bin/netconf/netconf_log.h
@@ -26,19 +26,19 @@ namespace netconf {
/// @brief Traces normal operations.
///
/// E.g. sending a command to a server etc.
-const int NETCONF_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int NETCONF_DBG_TRACE;
/// @brief Records the results of the commands.
///
/// Using the example of tracing commands to a server, this will just record
/// the summary results.
-const int NETCONF_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int NETCONF_DBG_RESULTS;
/// @brief Additional information.
///
/// Record detailed tracing. This is generally reserved for tracing
/// configurations from or to a server.
-const int NETCONF_DBG_TRACE_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int NETCONF_DBG_TRACE_DETAIL_DATA;
///@}
diff --git a/src/lib/config/config_log.cc b/src/lib/config/config_log.cc
index b1ad13df15..67f896fbd6 100644
--- a/src/lib/config/config_log.cc
+++ b/src/lib/config/config_log.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2018 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
@@ -15,6 +15,8 @@ namespace config {
isc::log::Logger command_logger("commands");
+extern const int DBG_COMMAND = isc::log::DBGLVL_COMMAND;
+
} // namespace nsas
} // namespace isc
diff --git a/src/lib/config/config_log.h b/src/lib/config/config_log.h
index 4937f4a9dc..08b4ddb83c 100644
--- a/src/lib/config/config_log.h
+++ b/src/lib/config/config_log.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2015,2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2018 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
@@ -21,7 +21,7 @@ namespace config {
extern isc::log::Logger command_logger;
// Enumerate configuration elements as they are processed.
-const int DBG_COMMAND = isc::log::DBGLVL_COMMAND;
+extern const int DBG_COMMAND;
} // namespace config
} // namespace isc
diff --git a/src/lib/database/db_log.cc b/src/lib/database/db_log.cc
index 8b775dba25..2b60a9b65b 100644
--- a/src/lib/database/db_log.cc
+++ b/src/lib/database/db_log.cc
@@ -17,6 +17,9 @@ using namespace isc::log;
namespace isc {
namespace db {
+/// @brief Database logging levels.
+extern const int DB_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+
/// @brief Map of translated messages.
const DbLogger::MessageMap db_message_map = {
{ DB_INVALID_ACCESS, DATABASE_INVALID_ACCESS },
diff --git a/src/lib/database/db_log.h b/src/lib/database/db_log.h
index 5096ad9543..0351ba8c32 100644
--- a/src/lib/database/db_log.h
+++ b/src/lib/database/db_log.h
@@ -37,7 +37,7 @@ namespace db {
///
/// Record detailed tracing. This is generally reserved for tracing access to
/// the lease database.
-const int DB_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int DB_DBG_TRACE_DETAIL;
///@}
diff --git a/src/lib/dhcpsrv/alloc_engine_log.cc b/src/lib/dhcpsrv/alloc_engine_log.cc
index 3d5fa15d60..d3086de026 100644
--- a/src/lib/dhcpsrv/alloc_engine_log.cc
+++ b/src/lib/dhcpsrv/alloc_engine_log.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2018 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
@@ -13,6 +13,12 @@
namespace isc {
namespace dhcp {
+extern const int ALLOC_ENGINE_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int ALLOC_ENGINE_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int ALLOC_ENGINE_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int ALLOC_ENGINE_DBG_TRACE_DETAIL_DATA =
+ isc::log::DBGLVL_TRACE_DETAIL_DATA;
+
isc::log::Logger alloc_engine_logger("alloc-engine");
} // namespace dhcp
diff --git a/src/lib/dhcpsrv/alloc_engine_log.h b/src/lib/dhcpsrv/alloc_engine_log.h
index 5c35a9eca3..14c1fa4072 100644
--- a/src/lib/dhcpsrv/alloc_engine_log.h
+++ b/src/lib/dhcpsrv/alloc_engine_log.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2015,2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2018 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
@@ -19,23 +19,23 @@ namespace dhcp {
/// Defines the levels used to output debug messages from the @c AllocEngine.
/// @brief Traces normal operations
-const int ALLOC_ENGINE_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int ALLOC_ENGINE_DBG_TRACE;
/// @brief Records the results of various operations.
///
/// Messages logged at this level will typically contain summary of the
/// data retrieved.
-const int ALLOC_ENGINE_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int ALLOC_ENGINE_DBG_RESULTS;
/// @brief Record detailed traces
///
/// Messages logged at this level will log detailed tracing information.
-const int ALLOC_ENGINE_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int ALLOC_ENGINE_DBG_TRACE_DETAIL;
/// @brief Records detailed results of various operations.
///
/// Messages logged at this level will contain detailed results.
-const int ALLOC_ENGINE_DBG_TRACE_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int ALLOC_ENGINE_DBG_TRACE_DETAIL_DATA;
//@}
diff --git a/src/lib/dhcpsrv/dhcpsrv_log.cc b/src/lib/dhcpsrv/dhcpsrv_log.cc
index ea2231c3be..ef0d578ac8 100644
--- a/src/lib/dhcpsrv/dhcpsrv_log.cc
+++ b/src/lib/dhcpsrv/dhcpsrv_log.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2012-2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2012-2018 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
@@ -13,6 +13,13 @@
namespace isc {
namespace dhcp {
+extern const int DHCPSRV_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DHCPSRV_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int DHCPSRV_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int DHCPSRV_DBG_TRACE_DETAIL_DATA =
+ isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int DHCPSRV_DBG_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
+
isc::log::Logger dhcpsrv_logger("dhcpsrv");
} // namespace dhcp
diff --git a/src/lib/dhcpsrv/dhcpsrv_log.h b/src/lib/dhcpsrv/dhcpsrv_log.h
index b4c41b1cb2..95fa7015d0 100644
--- a/src/lib/dhcpsrv/dhcpsrv_log.h
+++ b/src/lib/dhcpsrv/dhcpsrv_log.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2011-2015,2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2011-2018 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
@@ -23,27 +23,27 @@ namespace dhcp {
/// @brief Traces normal operations
///
/// E.g. sending a query to the database etc.
-const int DHCPSRV_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DHCPSRV_DBG_TRACE;
/// @brief Records the results of the lookups
///
/// Using the example of tracing queries from the backend database, this will
/// just record the summary results.
-const int DHCPSRV_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int DHCPSRV_DBG_RESULTS;
/// @brief Additional information
///
/// Record detailed tracing. This is generally reserved for tracing access to
/// the lease database.
-const int DHCPSRV_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int DHCPSRV_DBG_TRACE_DETAIL;
/// @brief Additional information
///
/// Record detailed (and verbose) data on the server.
-const int DHCPSRV_DBG_TRACE_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int DHCPSRV_DBG_TRACE_DETAIL_DATA;
// Trace hook related operations
-const int DHCPSRV_DBG_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
+extern const int DHCPSRV_DBG_HOOKS;
///@}
diff --git a/src/lib/dhcpsrv/hosts_log.cc b/src/lib/dhcpsrv/hosts_log.cc
index fbcb97e197..e5602dd6b2 100644
--- a/src/lib/dhcpsrv/hosts_log.cc
+++ b/src/lib/dhcpsrv/hosts_log.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2018 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
@@ -13,6 +13,12 @@
namespace isc {
namespace dhcp {
+extern const int HOSTS_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int HOSTS_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int HOSTS_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int HOSTS_DBG_TRACE_DETAIL_DATA =
+ isc::log::DBGLVL_TRACE_DETAIL_DATA;
+
isc::log::Logger hosts_logger("hosts");
} // namespace dhcp
diff --git a/src/lib/dhcpsrv/hosts_log.h b/src/lib/dhcpsrv/hosts_log.h
index e4b1faf62d..4d1dc3d54f 100644
--- a/src/lib/dhcpsrv/hosts_log.h
+++ b/src/lib/dhcpsrv/hosts_log.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2015,2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2018 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
@@ -24,23 +24,23 @@ namespace dhcp {
///
/// An example of the normal operation is the call to one of the functions
/// which retrieve the reservations or add new reservation.
-const int HOSTS_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int HOSTS_DBG_TRACE;
/// @brief Records the results of the lookups
///
/// Messages logged at this level will typically contain summary of the
/// data retrieved.
-const int HOSTS_DBG_RESULTS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int HOSTS_DBG_RESULTS;
/// @brief Record detailed traces
///
/// Messages logged at this level will log detailed tracing information.
-const int HOSTS_DBG_TRACE_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
+extern const int HOSTS_DBG_TRACE_DETAIL;
/// @brief Records detailed results of lookups.
///
/// Messages logged at this level will contain detailed results.
-const int HOSTS_DBG_TRACE_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int HOSTS_DBG_TRACE_DETAIL_DATA;
///@}
diff --git a/src/lib/eval/eval_log.cc b/src/lib/eval/eval_log.cc
index 6492ad69c7..d9aeffa833 100644
--- a/src/lib/eval/eval_log.cc
+++ b/src/lib/eval/eval_log.cc
@@ -1,4 +1,4 @@
-// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2018 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
@@ -13,6 +13,9 @@
namespace isc {
namespace dhcp {
+extern const int EVAL_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int EVAL_DBG_STACK = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+
isc::log::Logger eval_logger("eval");
} // namespace dhcp
diff --git a/src/lib/eval/eval_log.h b/src/lib/eval/eval_log.h
index 0b33c43717..566702545f 100644
--- a/src/lib/eval/eval_log.h
+++ b/src/lib/eval/eval_log.h
@@ -1,4 +1,4 @@
-// Copyright (C) 2015-2017 Internet Systems Consortium, Inc. ("ISC")
+// Copyright (C) 2015-2018 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
@@ -19,11 +19,11 @@ namespace dhcp {
/// Note that higher numbers equate to more verbose (and detailed) output.
// The first level traces normal operations,
-const int EVAL_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int EVAL_DBG_TRACE;
// Additional information on the calls. Report the values that were
// popped from or pushed to the value stack.
-const int EVAL_DBG_STACK = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int EVAL_DBG_STACK;
/// @brief Eval Logger
///
diff --git a/src/lib/hooks/hooks_log.cc b/src/lib/hooks/hooks_log.cc
index 6f75bc92df..1227ec220e 100644
--- a/src/lib/hooks/hooks_log.cc
+++ b/src/lib/hooks/hooks_log.cc
@@ -18,9 +18,9 @@ isc::log::Logger hooks_logger("hooks");
isc::log::Logger callouts_logger("callouts");
-const int HOOKS_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
-const int HOOKS_DBG_CALLS = isc::log::DBGLVL_TRACE_BASIC_DATA;
-const int HOOKS_DBG_EXTENDED_CALLS = isc::log::DBGLVL_TRACE_DETAIL_DATA;
+extern const int HOOKS_DBG_TRACE = isc::log::DBGLVL_TRACE_BASIC;
+extern const int HOOKS_DBG_CALLS = isc::log::DBGLVL_TRACE_BASIC_DATA;
+extern const int HOOKS_DBG_EXTENDED_CALLS = isc::log::DBGLVL_TRACE_DETAIL_DATA;
} // namespace hooks