Kea  1.9.9-git
dhcp4_log.h
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 #ifndef DHCP4_LOG_H
11 #define DHCP4_LOG_H
12 
13 #include <log/logger_support.h>
14 #include <log/macros.h>
15 #include <dhcp4/dhcp4_messages.h>
16 
17 namespace isc {
18 namespace dhcp {
19 
21 
22 
24 extern const int DBG_DHCP4_START;
25 
27 extern const int DBG_DHCP4_SHUT;
28 
30 extern const int DBG_DHCP4_COMMAND;
31 
33 extern const int DBG_DHCP4_BASIC;
34 
36 extern const int DBG_DHCP4_HOOKS;
37 
45 extern const int DBG_DHCP4_BASIC_DATA;
46 
53 extern const int DBG_DHCP4_DETAIL;
54 
56 extern const int DBG_DHCP4_DETAIL_DATA;
57 
59 
61 
62 
64 extern const char* DHCP4_ROOT_LOGGER_NAME;
65 
67 extern const char* DHCP4_APP_LOGGER_NAME;
68 
70 extern const char* DHCP4_BAD_PACKET_LOGGER_NAME;
71 
73 extern const char* DHCP4_PACKET_LOGGER_NAME;
74 
76 extern const char* DHCP4_OPTIONS_LOGGER_NAME;
77 
79 extern const char* DHCP4_DDNS_LOGGER_NAME;
80 
82 extern const char* DHCP4_LEASE_LOGGER_NAME;
83 
85 
87 
88 
91 
98 
104 
110 
116 
121 
123 
124 } // namespace dhcp4
125 } // namespace isc
126 
127 #endif // DHCP4_LOG_H
const char * DHCP4_PACKET_LOGGER_NAME
Name of the logger for processed packets.
Definition: dhcp4_log.cc:29
Logger Class.
Definition: log/logger.h:141
const char * DHCP4_DDNS_LOGGER_NAME
Name of the logger for hostname or FQDN processing.
Definition: dhcp4_log.cc:31
const int DBG_DHCP4_SHUT
Debug level used to log information during server shutdown.
Definition: dhcp4_log.h:27
const char * DHCP4_LEASE_LOGGER_NAME
Name of the logger for lease allocation logic.
Definition: dhcp4_log.cc:32
isc::log::Logger bad_packet4_logger(DHCP4_BAD_PACKET_LOGGER_NAME)
Logger for rejected packets.
Definition: dhcp4_log.h:97
const char * DHCP4_OPTIONS_LOGGER_NAME
Name of the logger for options parser.
Definition: dhcp4_log.cc:30
const int DBG_DHCP4_BASIC_DATA
Debug level used to log the traces with some basic data.
Definition: dhcp4_log.h:45
isc::log::Logger options4_logger(DHCP4_OPTIONS_LOGGER_NAME)
Logger for options parser.
Definition: dhcp4_log.h:109
const int DBG_DHCP4_START
Debug level used to log information during server startup.
Definition: dhcp4_log.h:24
const char * DHCP4_APP_LOGGER_NAME
Name of the base logger for DHCPv4 server.
Definition: dhcp4_log.cc:27
isc::log::Logger packet4_logger(DHCP4_PACKET_LOGGER_NAME)
Logger for processed packets.
Definition: dhcp4_log.h:103
const int DBG_DHCP4_BASIC
Debug level used to trace basic operations within the code.
Definition: dhcp4_log.h:33
isc::log::Logger dhcp4_logger(DHCP4_APP_LOGGER_NAME)
Base logger for DHCPv4 server.
Definition: dhcp4_log.h:90
const int DBG_DHCP4_DETAIL_DATA
This level is used to log the contents of packets received and sent.
Definition: dhcp4_log.h:56
const int DBG_DHCP4_DETAIL
Debug level used to trace detailed errors.
Definition: dhcp4_log.h:53
const int DBG_DHCP4_HOOKS
Debug level used to trace hook related operations.
Definition: dhcp4_log.h:36
const char * DHCP4_BAD_PACKET_LOGGER_NAME
Name of the logger for rejected packets.
Definition: dhcp4_log.cc:28
Defines the logger used by the top-level component of kea-dhcp-ddns.
Logging initialization functions.
isc::log::Logger ddns4_logger(DHCP4_DDNS_LOGGER_NAME)
Logger for Hostname or FQDN processing.
Definition: dhcp4_log.h:115
isc::log::Logger lease4_logger(DHCP4_LEASE_LOGGER_NAME)
Logger for lease allocation logic.
Definition: dhcp4_log.h:120
const int DBG_DHCP4_COMMAND
Debug level used to log receiving commands.
Definition: dhcp4_log.h:30
const char * DHCP4_ROOT_LOGGER_NAME
Defines the name of the root level (default) logger.
Definition: dhcp4_log.cc:26