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 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. enum {
  29. /// \brief Trace basic operations
  30. DBG_TRACE_BASIC = 10,
  31. /// \brief Trace data changes and lookups as well
  32. DBG_TRACE_DATA = 20,
  33. /// \brief Detailed even about how the lookups happen
  34. DBG_TRACE_DETAILED = 50
  35. };
  36. }
  37. }
  38. #endif