Files
ternfs-XTXMarkets/cpp/Env.cpp
Francesco Mazzoli fc0cee0e07 C++ shard
Most operations apart from spans-related ones work. Using this as
a checkpoint -- the Python code is currently not really working,
I'm working to migrate to pretty much a full C++/go world.
2022-12-10 10:55:25 +00:00

20 lines
425 B
C++

#include "Env.hpp"
#include "Assert.hpp"
std::ostream& operator<<(std::ostream& out, LogLevel ll) {
switch (ll) {
case LogLevel::LOG_DEBUG:
out << "DEBUG";
break;
case LogLevel::LOG_INFO:
out << "INFO";
break;
case LogLevel::LOG_ERROR:
out << "ERROR";
break;
default:
throw EGGS_EXCEPTION("bad log level %s", (uint32_t)ll);
}
return out;
}