Kea: dhcp4_log.cc Source File

| Kea 3.0.3-git

dhcp4_log.cc
Go to the documentation of this file.
1// Copyright (C) 2012-2018 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
9
10#include <config.h>
11
12#include <dhcp4/dhcp4_log.h>
13
14namespace isc {
15namespace dhcp {
16
17extern const int DBG_DHCP4_START = isc::log::DBGLVL_START_SHUT;
18extern const int DBG_DHCP4_SHUT = isc::log::DBGLVL_START_SHUT;
19extern const int DBG_DHCP4_COMMAND = isc::log::DBGLVL_COMMAND;
20extern const int DBG_DHCP4_BASIC = isc::log::DBGLVL_TRACE_BASIC;
21extern const int DBG_DHCP4_HOOKS = isc::log::DBGLVL_TRACE_BASIC;
22extern const int DBG_DHCP4_BASIC_DATA = isc::log::DBGLVL_TRACE_BASIC_DATA;
23extern const int DBG_DHCP4_DETAIL = isc::log::DBGLVL_TRACE_DETAIL;
24extern const int DBG_DHCP4_DETAIL_DATA = isc::log::DBGLVL_TRACE_DETAIL_DATA;
25
26 const char* DHCP4_ROOT_LOGGER_NAME = "kea-dhcp4";
27 const char* DHCP4_APP_LOGGER_NAME = "dhcp4";
28 const char* DHCP4_BAD_PACKET_LOGGER_NAME = "bad-packets";
29 const char* DHCP4_PACKET_LOGGER_NAME = "packets";
30 const char* DHCP4_OPTIONS_LOGGER_NAME = "options";
31 const char* DHCP4_DDNS_LOGGER_NAME = "ddns";
32 const char* DHCP4_LEASE_LOGGER_NAME = "leases";
33
34 isc::log::Logger dhcp4_logger(DHCP4_APP_LOGGER_NAME);
35 isc::log::Logger bad_packet4_logger(DHCP4_BAD_PACKET_LOGGER_NAME);
36 isc::log::Logger packet4_logger(DHCP4_PACKET_LOGGER_NAME);
37 isc::log::Logger options4_logger(DHCP4_OPTIONS_LOGGER_NAME);
38 isc::log::Logger ddns4_logger(DHCP4_DDNS_LOGGER_NAME);
39 isc::log::Logger lease4_logger(DHCP4_LEASE_LOGGER_NAME);
40
41} // namespace dhcp
42} // namespace isc
43
isc::log::Logger
Logger Class.
Definition log/logger.h:142
dhcp4_log.h
Contains declarations for loggers used by the DHCPv4 server component.
isc::dhcp
Definition dhcp4/client_handler.cc:20
isc::dhcp::ddns4_logger
isc::log::Logger ddns4_logger(DHCP4_DDNS_LOGGER_NAME)
Logger for Hostname or FQDN processing.
Definition dhcp4_log.h:115
isc::dhcp::DHCP4_ROOT_LOGGER_NAME
const char * DHCP4_ROOT_LOGGER_NAME
Defines the name of the root level (default) logger.
Definition dhcp4_log.cc:26
isc::dhcp::DBG_DHCP4_SHUT
const int DBG_DHCP4_SHUT
Debug level used to log information during server shutdown.
Definition dhcp4_log.h:27
isc::dhcp::DBG_DHCP4_BASIC_DATA
const int DBG_DHCP4_BASIC_DATA
Debug level used to log the traces with some basic data.
Definition dhcp4_log.h:45
isc::dhcp::DBG_DHCP4_DETAIL
const int DBG_DHCP4_DETAIL
Debug level used to trace detailed errors.
Definition dhcp4_log.h:53
isc::dhcp::lease4_logger
isc::log::Logger lease4_logger(DHCP4_LEASE_LOGGER_NAME)
Logger for lease allocation logic.
Definition dhcp4_log.h:120
isc::dhcp::options4_logger
isc::log::Logger options4_logger(DHCP4_OPTIONS_LOGGER_NAME)
Logger for options parser.
Definition dhcp4_log.h:109
isc::dhcp::DBG_DHCP4_DETAIL_DATA
const int DBG_DHCP4_DETAIL_DATA
This level is used to log the contents of packets received and sent.
Definition dhcp4_log.h:56
isc::dhcp::DHCP4_OPTIONS_LOGGER_NAME
const char * DHCP4_OPTIONS_LOGGER_NAME
Name of the logger for options parser.
Definition dhcp4_log.cc:30
isc::dhcp::DBG_DHCP4_COMMAND
const int DBG_DHCP4_COMMAND
Debug level used to log receiving commands.
Definition dhcp4_log.h:30
isc::dhcp::bad_packet4_logger
isc::log::Logger bad_packet4_logger(DHCP4_BAD_PACKET_LOGGER_NAME)
Logger for rejected packets.
Definition dhcp4_log.h:97
isc::dhcp::DBG_DHCP4_BASIC
const int DBG_DHCP4_BASIC
Debug level used to trace basic operations within the code.
Definition dhcp4_log.h:33
isc::dhcp::DHCP4_DDNS_LOGGER_NAME
const char * DHCP4_DDNS_LOGGER_NAME
Name of the logger for hostname or FQDN processing.
Definition dhcp4_log.cc:31
isc::dhcp::DHCP4_APP_LOGGER_NAME
const char * DHCP4_APP_LOGGER_NAME
Name of the base logger for DHCPv4 server.
Definition dhcp4_log.cc:27
isc::dhcp::DHCP4_LEASE_LOGGER_NAME
const char * DHCP4_LEASE_LOGGER_NAME
Name of the logger for lease allocation logic.
Definition dhcp4_log.cc:32
isc::dhcp::packet4_logger
isc::log::Logger packet4_logger(DHCP4_PACKET_LOGGER_NAME)
Logger for processed packets.
Definition dhcp4_log.h:103
isc::dhcp::dhcp4_logger
isc::log::Logger dhcp4_logger(DHCP4_APP_LOGGER_NAME)
Base logger for DHCPv4 server.
Definition dhcp4_log.h:90
isc::dhcp::DBG_DHCP4_HOOKS
const int DBG_DHCP4_HOOKS
Debug level used to trace hook related operations.
Definition dhcp4_log.h:36
isc::dhcp::DHCP4_PACKET_LOGGER_NAME
const char * DHCP4_PACKET_LOGGER_NAME
Name of the logger for processed packets.
Definition dhcp4_log.cc:29
isc::dhcp::DBG_DHCP4_START
const int DBG_DHCP4_START
Debug level used to log information during server startup.
Definition dhcp4_log.h:24
isc::dhcp::DHCP4_BAD_PACKET_LOGGER_NAME
const char * DHCP4_BAD_PACKET_LOGGER_NAME
Name of the logger for rejected packets.
Definition dhcp4_log.cc:28
isc::log::DBGLVL_TRACE_BASIC
const int DBGLVL_TRACE_BASIC
Trace basic operations.
Definition log_dbglevels.h:69
isc::log::DBGLVL_COMMAND
const int DBGLVL_COMMAND
This debug level is reserved for logging the exchange of messages/commands between processes,...
Definition log_dbglevels.h:54
isc::log::DBGLVL_START_SHUT
const int DBGLVL_START_SHUT
This is given a value of 0 as that is the level selected if debugging is enabled without giving a lev...
Definition log_dbglevels.h:50
isc::log::DBGLVL_TRACE_DETAIL_DATA
const int DBGLVL_TRACE_DETAIL_DATA
Trace data associated with detailed operations.
Definition log_dbglevels.h:78
isc::log::DBGLVL_TRACE_BASIC_DATA
const int DBGLVL_TRACE_BASIC_DATA
Trace data associated with the basic operations.
Definition log_dbglevels.h:72
isc::log::DBGLVL_TRACE_DETAIL
const int DBGLVL_TRACE_DETAIL
Trace detailed operations.
Definition log_dbglevels.h:75
isc
Defines the logger used by the top-level component of kea-lfc.
Definition agent_parser.cc:148