logger.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 __SERVER_COMMON_LOGGER_H
  15. #define __SERVER_COMMON_LOGGER_H
  16. #include <log/macros.h>
  17. #include <server_common/server_common_messages.h>
  18. /// \file logger.h
  19. /// \brief Server Common library global logger
  20. ///
  21. /// This holds the logger for the server common 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 server_common {
  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 Print also values used
  32. DBG_TRACE_VALUES = 40
  33. };
  34. }
  35. }
  36. #endif