Go to the documentation of this file.
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: ");
virtual void log(const Loc &loc, std::string s)=0
Logger(const char *prefix)
static Logger & getPanic()
Get a Logger for the specified type of message.
static Logger & getFatal()
static Logger & getInfo()
void ccprintf(cp::Print &print)
uint64_t memUsage()
Determine the simulator process' total virtual memory usage.
static Logger & getWarn()
static Logger & getHack()
Generated on Wed Sep 30 2020 14:02:07 for gem5 by doxygen 1.8.17