58 static std::array<Logger *, NUM_LOG_LEVELS> loggers{{
61 new Logger(std::cerr,
"warn"),
62 new Logger(std::cerr,
"info"),
63 new Logger(std::cerr,
"hack"),
79 const size_t format_len(strlen(format));
81 switch (format_len ? format[format_len - 1] :
'\0') {
91 :
enabled(true), verbose(false), stream(_stream), prefix(_prefix)
void ccprintf(cp::Print &print)
static Logger & get(LogLevel ll)
Get a Logger corresponding to a specific log level.
uint64_t memUsage()
Determine the simulator process' total virtual memory usage.
Tick curTick()
The current simulated tick.
void printEpilogue(const char *func, const char *file, int line, const char *format) override
virtual void printEpilogue(const char *func, const char *file, int line, const char *format)
Logger(std::ostream &stream, const char *prefix)
Defines global host-dependent types: Counter, Tick, and (indirectly) {int,uint}{8,16,32,64}_t.
static void newline_if_needed(std::ostream &stream, const char *format)
Bitfield< 31, 29 > format
static void setLevel(LogLevel ll)
Set the active log level.