#include <logging.hh>
|
| Logger (const char *prefix) |
|
virtual | ~Logger () |
|
void | print (const Loc &loc, const std::string &str) |
|
template<typename ... Args> |
void | print (const Loc &loc, const char *format, const Args &...args) |
|
template<typename ... Args> |
void | print (const Loc &loc, const std::string &format, const Args &...args) |
|
void | exit_helper () M5_ATTR_NORETURN |
| This helper is necessary since noreturn isn't inherited by virtual functions, and gcc will get mad if a function calls panic and then doesn't return. More...
|
|
|
virtual void | log (const Loc &loc, std::string s)=0 |
|
virtual void | exit () |
|
Definition at line 51 of file logging.hh.
◆ LogLevel
Enumerator |
---|
PANIC | |
FATAL | |
WARN | |
INFO | |
HACK | |
NUM_LOG_LEVELS | |
Definition at line 64 of file logging.hh.
◆ Logger()
Logger::Logger |
( |
const char * |
prefix | ) |
|
|
inline |
◆ ~Logger()
virtual Logger::~Logger |
( |
| ) |
|
|
inlinevirtual |
◆ exit()
virtual void Logger::exit |
( |
| ) |
|
|
inlineprotectedvirtual |
◆ exit_helper()
void Logger::exit_helper |
( |
| ) |
|
|
inline |
This helper is necessary since noreturn isn't inherited by virtual functions, and gcc will get mad if a function calls panic and then doesn't return.
Definition at line 124 of file logging.hh.
References exit().
◆ getFatal()
◆ getHack()
◆ getInfo()
◆ getPanic()
◆ getWarn()
◆ log()
virtual void Logger::log |
( |
const Loc & |
loc, |
|
|
std::string |
s |
|
) |
| |
|
protectedpure virtual |
◆ print() [1/3]
template<typename ... Args>
void Logger::print |
( |
const Loc & |
loc, |
|
|
const char * |
format, |
|
|
const Args &... |
args |
|
) |
| |
|
inline |
◆ print() [2/3]
template<typename ... Args>
void Logger::print |
( |
const Loc & |
loc, |
|
|
const std::string & |
format, |
|
|
const Args &... |
args |
|
) |
| |
|
inline |
◆ print() [3/3]
void Logger::print |
( |
const Loc & |
loc, |
|
|
const std::string & |
str |
|
) |
| |
|
inline |
◆ setLevel()
static void Logger::setLevel |
( |
LogLevel |
ll | ) |
|
|
inlinestatic |
Definition at line 70 of file logging.hh.
References enabled, FATAL, getFatal(), getHack(), getInfo(), getPanic(), getWarn(), HACK, INFO, PANIC, and WARN.
Referenced by pybind_init_core().
◆ enabled
◆ prefix
const char* Logger::prefix |
|
protected |
The documentation for this class was generated from the following files: