config_log.h 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 __CONFIG_LOG__H
  15. #define __CONFIG_LOG__H
  16. #include <log/macros.h>
  17. #include "config_messages.h"
  18. namespace isc {
  19. namespace config {
  20. /// \brief Config Logging
  21. ///
  22. /// Defines logger object for config log messages
  23. /// \brief Config Logger
  24. ///
  25. /// Define the logger used to log messages. We could define it in multiple
  26. /// modules, but defining in a single module and linking to it saves time and
  27. /// space.
  28. extern isc::log::Logger config_logger;
  29. // Enumerate configuration elements as they are processed.
  30. const int DBG_CONFIG_PROCESS = DBGLVL_TRACE_BASIC;
  31. } // namespace config
  32. } // namespace isc
  33. #endif // __CONFIG_LOG__H