diff options
author | Andrew Bardsley <Andrew.Bardsley@arm.com> | 2014-10-16 05:49:53 -0400 |
---|---|---|
committer | Andrew Bardsley <Andrew.Bardsley@arm.com> | 2014-10-16 05:49:53 -0400 |
commit | 960935a5bd31b0a325285beb1deb816429c7fe00 (patch) | |
tree | fcd7159f26be72be63bc49242a7648c613232830 /src/base/flags.hh | |
parent | a2d246b6b8379f9a74dbc56feefc155f615b5ea4 (diff) | |
download | gem5-960935a5bd31b0a325285beb1deb816429c7fe00.tar.xz |
base: Reimplement the DPRINTF mechanism in a Logger class
This patch adds a Logger class encapsulating dprintf. This allows
variants of DPRINTF logging to be constructed and substituted in
place of the default behaviour.
The Logger provides a logMessage(when, name, format, ...) member
function like Trace::dprintf and a getOstream member function to
use a raw ostream for logging.
A class OstreamLogger is provided which generates the customary
debugging output with Trace::OstreamLogger::logMessage being the
old Trace::dprintf.
Diffstat (limited to 'src/base/flags.hh')
0 files changed, 0 insertions, 0 deletions