common.h 331 B

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