common.h 343 B

1234567891011121314151617181920
  1. //
  2. // common.hpp
  3. // logging
  4. //
  5. // Created by Sam Jaffe on 4/1/19.
  6. //
  7. #pragma once
  8. #include <string>
  9. #include <sys/time.h>
  10. namespace logging {
  11. enum class level : int;
  12. timeval now();
  13. level level_from_string(std::string const & value);
  14. char const * level_to_string(level lvl);
  15. std::string to_string(level lvl, bool uppercase);
  16. }