logger.h 1.7 KB

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