49 class NormalLogger :
public Logger 55 void log(
const Loc &loc, std::string
s)
override { std::cerr <<
s; }
58 class ExitLogger :
public NormalLogger
61 using NormalLogger::NormalLogger;
65 log(
const Loc &loc, std::string
s)
override 69 NormalLogger::log(loc, s + ss.str());
73 class FatalLogger :
public ExitLogger
76 using ExitLogger::ExitLogger;
82 ExitLogger panicLogger(
"panic: ");
83 FatalLogger fatalLogger(
"fatal: ");
84 NormalLogger warnLogger(
"warn: ");
85 NormalLogger infoLogger(
"info: ");
86 NormalLogger hackLogger(
"hack: ");
void ccprintf(cp::Print &print)
static Logger & getPanic()
uint64_t memUsage()
Determine the simulator process' total virtual memory usage.
Logger(const char *prefix)
static Logger & getInfo()
static Logger & getWarn()
static Logger & getHack()
static Logger & getFatal()
virtual void log(const Loc &loc, std::string s)=0