Files
ternfs-XTXMarkets/cpp/core/Env.cpp
Francesco Mazzoli 5bff9b8fae Many, many changes -- tests pass, but FUSE is currently not present
The main thing that's added is full RS support, but a lot of things
were rejigged along the way. The tests are still a bit lacking,
and will be augmented in future commits.
2023-03-03 16:42:22 +00:00

23 lines
494 B
C++

#include "Env.hpp"
#include "Assert.hpp"
std::ostream& operator<<(std::ostream& out, LogLevel ll) {
switch (ll) {
case LogLevel::LOG_TRACE:
out << "TRACE";
break;
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;
}