logger_levels.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 __LOGGER_LEVELS_H
  15. #define __LOGGER_LEVELS_H
  16. namespace isc {
  17. namespace log {
  18. /// \brief Severity Levels
  19. ///
  20. /// Defines the severity levels for logging. This is shared between the logger
  21. /// and the implementations classes.
  22. ///
  23. /// N.B. The order of the levels - DEBUG less than INFO less that WARN etc. is
  24. /// implicitly assumed in several implementations. They must not be changed.
  25. typedef enum {
  26. DEFAULT = 0, // Default to logging level of the parent
  27. DEBUG = 1,
  28. INFO = 2,
  29. WARN = 3,
  30. ERROR = 4,
  31. FATAL = 5,
  32. NONE = 6 // Disable logging
  33. } Severity;
  34. } // namespace log
  35. } // namespace isc
  36. #endif // __LOGGER_LEVELS_H