logger.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 __DATASRC_LOGGER_H
  15. #define __DATASRC_LOGGER_H
  16. #include <log/macros.h>
  17. #include <datasrc/datasrc_messages.h>
  18. /// \file datasrc/logger.h
  19. /// \brief Data Source library global logger
  20. ///
  21. /// This holds the logger for the data source library. It is a private header
  22. /// and should not be included in any publicly used header, only in local
  23. /// cc files.
  24. namespace isc {
  25. namespace datasrc {
  26. /// \brief The logger for this library
  27. extern isc::log::Logger logger;
  28. /// \brief Trace basic operations
  29. const int DBG_TRACE_BASIC = DBGLVL_TRACE_BASIC;
  30. /// \brief Trace data changes and lookups as well
  31. const int DBG_TRACE_DATA = DBGLVL_TRACE_BASIC_DATA;
  32. /// \brief Detailed even about how the lookups happen
  33. const int DBG_TRACE_DETAILED = DBGLVL_TRACE_DETAIL;
  34. }
  35. }
  36. #endif