resolver_log.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. // Copyright (C) 2011 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 __RESOLVER_LOG__H
  15. #define __RESOLVER_LOG__H
  16. #include <log/macros.h>
  17. #include "resolver_messages.h"
  18. /// \brief Resolver Logging
  19. ///
  20. /// Defines the levels used to output debug messages in the resolver. Note that
  21. /// higher numbers equate to more verbose (and detailed) output.
  22. // Initialization and shutdown of the resolver.
  23. const int RESOLVER_DBG_INIT = DBGLVL_START_SHUT;
  24. // Configuration messages
  25. const int RESOLVER_DBG_CONFIG = DBGLVL_COMMAND;
  26. // Trace sending and receiving of messages
  27. const int RESOLVER_DBG_IO = DBGLVL_TRACE_BASIC;
  28. // Trace processing of messages
  29. const int RESOLVER_DBG_PROCESS = DBGLVL_TRACE_DETAIL;
  30. // Detailed message information
  31. const int RESOLVER_DBG_DETAIL = DBGLVL_TRACE_DETAIL_DATA;
  32. /// \brief Resolver Logger
  33. ///
  34. /// Define the logger used to log messages. We could define it in multiple
  35. /// modules, but defining in a single module and linking to it saves time and
  36. /// space.
  37. extern isc::log::Logger resolver_logger;
  38. #endif // __RESOLVER_LOG__H