alloc_engine_log.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. // Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
  2. //
  3. // Permission to use, copy, modify, and/or distribute this software for any
  4. // purpose with or without fee is hereby granted, provided that the above
  5. // copyright notice and this permission notice appear in all copies.
  6. //
  7. // THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  8. // REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  9. // AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
  10. // INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  11. // LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  12. // OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  13. // PERFORMANCE OF THIS SOFTWARE.
  14. #ifndef ALLOC_ENGINE_LOG_H
  15. #define ALLOC_ENGINE_LOG_H
  16. #include <dhcpsrv/alloc_engine_messages.h>
  17. #include <log/macros.h>
  18. namespace isc {
  19. namespace dhcp {
  20. ///@{
  21. /// \brief Logging levels for the @c AllocEngine.
  22. ///
  23. /// Defines the levels used to output debug messages from the @c AllocEngine.
  24. /// @brief Traces normal operations
  25. const int ALLOC_ENGINE_DBG_TRACE = DBGLVL_TRACE_BASIC;
  26. /// @brief Records the results of various operations.
  27. ///
  28. /// Messages logged at this level will typically contain summary of the
  29. /// data retrieved.
  30. const int ALLOC_ENGINE_DBG_RESULTS = DBGLVL_TRACE_BASIC_DATA;
  31. /// @brief Record detailed traces
  32. ///
  33. /// Messages logged at this level will log detailed tracing information.
  34. const int ALLOC_ENGINE_DBG_TRACE_DETAIL = DBGLVL_TRACE_DETAIL;
  35. /// @brief Records detailed results of various operations.
  36. ///
  37. /// Messages logged at this level will contain detailed results.
  38. const int ALLOC_ENGINE_DBG_TRACE_DETAIL_DATA = DBGLVL_TRACE_DETAIL_DATA;
  39. ///@}
  40. /// @brief Logger for the @c AllocEngine..
  41. ///
  42. /// Define the logger used to log messages in @c AllocEngine.
  43. extern isc::log::Logger alloc_engine_logger;
  44. } // namespace dhcp
  45. } // namespace isc
  46. #endif // ALLOC_ENGINE_LOG_H