1 // Copyright (C) 2015-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 
7 #ifndef HOSTS_LOG_H
8 #define HOSTS_LOG_H
9 
10 #include <dhcpsrv/hosts_messages.h>
11 #include <log/macros.h>
12 
13 namespace isc {
14 namespace dhcp {
15 
16 ///@{
17 /// \brief Logging levels for the host reservations management.
18 ///
19 /// Defines the levels used to output debug messages during the host
20 /// reservations management, i.e. retrieving and adding host reservations.
21 /// Note that higher numbers equate to more verbose(and detailed) output.
22 
23 /// @brief Traces normal operations
24 ///
25 /// An example of the normal operation is the call to one of the functions
26 /// which retrieve the reservations or add new reservation.
27 extern const int HOSTS_DBG_TRACE;
28 
29 /// @brief Records the results of the lookups
30 ///
31 /// Messages logged at this level will typically contain summary of the
32 /// data retrieved.
33 extern const int HOSTS_DBG_RESULTS;
34 
35 /// @brief Record detailed traces
36 ///
37 /// Messages logged at this level will log detailed tracing information.
38 extern const int HOSTS_DBG_TRACE_DETAIL;
39 
40 /// @brief Records detailed results of lookups.
41 ///
42 /// Messages logged at this level will contain detailed results.
43 extern const int HOSTS_DBG_TRACE_DETAIL_DATA;
44 
45 ///@}
46 
47 /// @brief Logger for the @c HostMgr and the code it calls.
48 ///
49 /// Define the logger used to log messages in @c HostMgr and the code it
50 /// calls to manage host reservations.
51 extern isc::log::Logger hosts_logger;
52 
53 } // namespace dhcp
54 } // namespace isc
55 
56 #endif // HOSTS_LOG_H
57