logger_fwd.h 595 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // logger_fwd.hpp
  3. // logger
  4. //
  5. // Created by Sam Jaffe on 9/3/16.
  6. //
  7. #pragma once
  8. #include <string>
  9. namespace logging {
  10. enum class level : int;
  11. struct logpacket;
  12. std::ostream & operator<<(std::ostream & os, level l);
  13. struct location_info {
  14. char const * filename = "???";
  15. int line = 0;
  16. char const * function = "";
  17. };
  18. }
  19. #define LIST_OF_LOGGING_LEVELS \
  20. X(trace) X(debug) X(info) X(warning) X(error) X(critical) X(fatal) X(none)
  21. #define X(token) token,
  22. namespace logging {
  23. enum class level : int {
  24. LIST_OF_LOGGING_LEVELS warn = warning
  25. };
  26. }
  27. #undef X