// Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC") // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, provided that the above // copyright notice and this permission notice appear in all copies. // // THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY // AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM // LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR // PERFORMANCE OF THIS SOFTWARE. #ifndef HOSTS_LOG_H #define HOSTS_LOG_H #include #include namespace isc { namespace dhcp { ///@{ /// \brief Logging levels for the host reservations management. /// /// Defines the levels used to output debug messages during the host /// reservations management, i.e. retrieving and adding host reservations. /// Note that higher numbers equate to more verbose(and detailed) output. /// @brief Traces normal operations /// /// 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 = DBGLVL_TRACE_BASIC; /// @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 = DBGLVL_TRACE_BASIC_DATA; /// @brief Record detailed traces /// /// Messages logged at this level will log detailed tracing information. const int HOSTS_DBG_TRACE_DETAIL = DBGLVL_TRACE_DETAIL; /// @brief Records detailed results of lookups. /// /// Messages logged at this level will contain detailed results. const int HOSTS_DBG_TRACE_DETAIL_DATA = DBGLVL_TRACE_DETAIL_DATA; ///@} /// @brief Logger for the @c HostMgr and the code it calls. /// /// Define the logger used to log messages in @c HostMgr and the code it /// calls to manage host reservations. extern isc::log::Logger hosts_logger; } // namespace dhcp } // namespace isc #endif // HOSTS_LOG_H