|

INTRODUCTION
Overview
Download and Install
Documentation
Publications
REPOSITORY
Libraries
DEVELOPER
Dev Guide
Dashboard
PEOPLE
Contributors
Users

Project
Download
Mailing lists
|
|
|
A simple implementation of the tracer API which prints to cout.
More...
#include <trivialtracer.h>
|
| TrivialTracer (int debug=0, int info=9, int warn=9, int error=9) |
|
virtual void | print (const std::string &message) |
| LOCAL INTERFACE. More...
|
|
virtual void | info (const std::string &message, int level=1, bool localOnly=false) |
|
virtual void | warning (const std::string &message, int level=1, bool localOnly=false) |
|
virtual void | error (const std::string &message, int level=1, bool localOnly=false) |
|
virtual void | debug (const std::string &message, int level=1, bool localOnly=false) |
|
virtual int | verbosity (TraceType traceType, DestinationType destType=ToAny) const |
|
virtual void | info (const std::string &subsystem, const std::string &message, int level=1, bool localOnly=false) |
| This version gives the Tracer some hints about a specific subsytem which generated the message.
|
|
virtual void | warning (const std::string &subsystem, const std::string &message, int level=1, bool localOnly=false) |
| This version gives the Tracer some hints about a specific subsytem which generated the message.
|
|
virtual void | error (const std::string &subsystem, const std::string &message, int level=1, bool localOnly=false) |
| This version gives the Tracer some hints about a specific subsytem which generated the message.
|
|
virtual void | debug (const std::string &subsystem, const std::string &message, int level=1, bool localOnly=false) |
| This version gives the Tracer some hints about a specific subsytem which generated the message.
|
|
virtual void | print (const std::string &message)=0 |
| LOCAL INTERFACE. More...
|
|
virtual void | info (const std::string &message, int level=1, bool localOnly=false) |
|
virtual void | info (const std::string &subsystem, const std::string &message, int level=1, bool localOnly=false)=0 |
| This version gives the Tracer some hints about a specific subsytem which generated the message.
|
|
virtual void | warning (const std::string &message, int level=1, bool localOnly=false) |
|
virtual void | warning (const std::string &subsystem, const std::string &message, int level=1, bool localOnly=false)=0 |
| This version gives the Tracer some hints about a specific subsytem which generated the message.
|
|
virtual void | error (const std::string &message, int level=1, bool localOnly=false) |
|
virtual void | error (const std::string &subsystem, const std::string &message, int level=1, bool localOnly=false)=0 |
| This version gives the Tracer some hints about a specific subsytem which generated the message.
|
|
virtual void | debug (const std::string &message, int level=1, bool localOnly=false) |
|
virtual void | debug (const std::string &subsystem, const std::string &message, int level=1, bool localOnly=false)=0 |
| This version gives the Tracer some hints about a specific subsytem which generated the message.
|
|
virtual int | verbosity (TraceType traceType, DestinationType destType=ToAny) const =0 |
|
virtual void | setSubsystemDebugLevel (const std::string &subsystem, int level=0) |
|
virtual void | subsystemDebug (const std::string &subsystem, const std::string &message, int level=1) |
|
A simple implementation of the tracer API which prints to cout.
- See also
- Tracer
◆ TrivialTracer()
gbxutilacfr::TrivialTracer::TrivialTracer |
( |
int |
debug = 0 , |
|
|
int |
info = 9 , |
|
|
int |
warn = 9 , |
|
|
int |
error = 9 |
|
) |
| |
◆ debug()
virtual void gbxutilacfr::TrivialTracer::debug |
( |
const std::string & |
message, |
|
|
int |
level = 1 , |
|
|
bool |
localOnly = false |
|
) |
| |
|
inlinevirtual |
Routing is determined by DebugToXxx parameter. If localOnly is set to TRUE, messages are not sent over the network (useful when traces is caused by network errors).
Reimplemented from gbxutilacfr::Tracer.
Referenced by TrivialTracer().
◆ error()
virtual void gbxutilacfr::TrivialTracer::error |
( |
const std::string & |
message, |
|
|
int |
level = 1 , |
|
|
bool |
localOnly = false |
|
) |
| |
|
inlinevirtual |
Routing is determined by ErrorToXxx parameter. If localOnly is set to TRUE, messages are not sent over the network (useful when traces is caused by network errors).
Reimplemented from gbxutilacfr::Tracer.
Referenced by TrivialTracer().
◆ info()
virtual void gbxutilacfr::TrivialTracer::info |
( |
const std::string & |
message, |
|
|
int |
level = 1 , |
|
|
bool |
localOnly = false |
|
) |
| |
|
inlinevirtual |
Routing is determined by InfoToXxx parameter. If localOnly is set to TRUE, messages are not sent over the network (useful when traces is caused by network errors).
Reimplemented from gbxutilacfr::Tracer.
Referenced by TrivialTracer().
◆ print()
void gbxutilacfr::TrivialTracer::print |
( |
const std::string & |
message | ) |
|
|
virtual |
LOCAL INTERFACE.
Prints out verbatim to stdout. It is never routed over the network. - See also
- info
Implements gbxutilacfr::Tracer.
◆ verbosity()
Returns the verbosity level for traceType to destType. This test is performed internally by all tracing functions, e.g. error(). You may want to call this function yourself before calling error() if there is a significant overhead in forming the tracing string. See class documentation for an example of such usage.
Implements gbxutilacfr::Tracer.
References gbxutilacfr::NumberOfTraceTypes.
◆ warning()
virtual void gbxutilacfr::TrivialTracer::warning |
( |
const std::string & |
message, |
|
|
int |
level = 1 , |
|
|
bool |
localOnly = false |
|
) |
| |
|
inlinevirtual |
Routing is determined by WarningToXxx parameter. If localOnly is set to TRUE, messages are not sent over the network (useful when traces is caused by network errors).
Reimplemented from gbxutilacfr::Tracer.
The documentation for this class was generated from the following files:
|
|