eval_log.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // Copyright (C) 2015-2016 Internet Systems Consortium, Inc. ("ISC")
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this
  5. // file, You can obtain one at http://mozilla.org/MPL/2.0/.
  6. #ifndef EVAL_LOG_H
  7. #define EVAL_LOG_H
  8. #include <log/macros.h>
  9. #include <eval/eval_messages.h>
  10. namespace isc {
  11. namespace dhcp {
  12. /// @brief Eval debug Logging levels
  13. ///
  14. /// Defines the levels used to output debug messages in the eval (classification) code.
  15. /// Note that higher numbers equate to more verbose (and detailed) output.
  16. // The first level traces normal operations,
  17. const int EVAL_DBG_TRACE = DBGLVL_TRACE_BASIC;
  18. // Additional information on the calls. Report the values that were
  19. // popped from or pushed to the value stack.
  20. const int EVAL_DBG_STACK = DBGLVL_TRACE_DETAIL_DATA;
  21. /// @brief Eval Logger
  22. ///
  23. /// Define the logger used to log messages. We could define it in multiple
  24. /// modules, but defining in a single module and linking to it saves time and
  25. /// space.
  26. extern isc::log::Logger eval_logger;
  27. } // namespace dhcp
  28. } // namespace isc
  29. #endif // EVAL_LOG_H