mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-01-12 14:00:08 -06:00
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.
23 lines
494 B
C++
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;
|
|
}
|