|
gem5
|
Debug logging base class. More...
#include <trace.hh>
Public Member Functions | |
| template<typename... Args> | |
| void | dprintf (Tick when, const std::string &name, const char *fmt, const Args &...args) |
| Log a single message. More... | |
| virtual void | dump (Tick when, const std::string &name, const void *d, int len) |
| Dump a block of data of length len. More... | |
| virtual void | logMessage (Tick when, const std::string &name, const std::string &message)=0 |
| Log formatted message. More... | |
| virtual std::ostream & | getOstream ()=0 |
| Return an ostream that can be used to send messages to the 'same place' as formatted logMessage messages. More... | |
| void | setIgnore (ObjectMatch &ignore_) |
| Set objects to ignore. More... | |
| virtual | ~Logger () |
Protected Attributes | |
| ObjectMatch | ignore |
| Name match for objects to ignore. More... | |
Debug logging base class.
Handles formatting and outputting time/name/message messages
|
inline |
Log a single message.
Definition at line 60 of file trace.hh.
References ccprintf(), ignore, logMessage(), and ObjectMatch::match().
|
virtual |
Dump a block of data of length len.
Definition at line 105 of file trace.cc.
References ArmISA::c, ccprintf(), ArmISA::d, data, ArmISA::i, ignore, ArmISA::j, ArmISA::len, logMessage(), and ObjectMatch::match().
|
pure virtual |
Return an ostream that can be used to send messages to the 'same place' as formatted logMessage messages.
This can be implemented to use a logger's underlying ostream, to provide an ostream which formats the output in some way, or just set to one of std::cout, std::cerr
Implemented in Trace::OstreamLogger.
Referenced by Trace::output().
|
pure virtual |
|
inline |
|
protected |
Name match for objects to ignore.
Definition at line 55 of file trace.hh.
Referenced by dprintf(), dump(), Trace::OstreamLogger::logMessage(), and setIgnore().