From f5f56e1a1c4d9e9496fcb9d81131066a964ccd23 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 13 Apr 2024 14:15:43 +0200 Subject: Adding upstream version 2.4.1. Signed-off-by: Daniel Baumann --- src/bin/dhcp4/dhcp4_log.cc | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 src/bin/dhcp4/dhcp4_log.cc (limited to 'src/bin/dhcp4/dhcp4_log.cc') diff --git a/src/bin/dhcp4/dhcp4_log.cc b/src/bin/dhcp4/dhcp4_log.cc new file mode 100644 index 0000000..315ca35 --- /dev/null +++ b/src/bin/dhcp4/dhcp4_log.cc @@ -0,0 +1,43 @@ +// 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 +// file, You can obtain one at http://mozilla.org/MPL/2.0/. + +/// @file dhcp4_log.cc +/// Contains the loggers used by the DHCPv4 server component. + +#include + +#include + +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"; +const char* DHCP4_PACKET_LOGGER_NAME = "packets"; +const char* DHCP4_OPTIONS_LOGGER_NAME = "options"; +const char* DHCP4_DDNS_LOGGER_NAME = "ddns"; +const char* DHCP4_LEASE_LOGGER_NAME = "leases"; + +isc::log::Logger dhcp4_logger(DHCP4_APP_LOGGER_NAME); +isc::log::Logger bad_packet4_logger(DHCP4_BAD_PACKET_LOGGER_NAME); +isc::log::Logger packet4_logger(DHCP4_PACKET_LOGGER_NAME); +isc::log::Logger options4_logger(DHCP4_OPTIONS_LOGGER_NAME); +isc::log::Logger ddns4_logger(DHCP4_DDNS_LOGGER_NAME); +isc::log::Logger lease4_logger(DHCP4_LEASE_LOGGER_NAME); + +} // namespace dhcp +} // namespace isc + -- cgit v1.2.3