|
MCSB
2.0.0
High-throughput shared memory middleware
|
A simple debug printer class used in MCSB. More...
#include <MCSB/dbprinter.h>
Public Types | |
| enum | { kCritical =0, kError, kWarning, kNotice, kInfo, kDebug } |
| debug print levels are similar to RFC5424 for syslog | |
Public Member Functions | |
| dbprinter (int verbosity_=kNotice) | |
| Construct, setting the verbosity level. | |
| int | dbprintf (int level, const char *fmt,...) const |
| behaves like fprintf(stderr,...) if verbosity is at or above the specified level | |
| int | dbprintf (int level, const char *fmt, va_list ap) const |
| behaves like vfprintf(stderr,...) if verbosity is at or above the specified level | |
| int | Verbosity (void) const |
| Get the current verbosity level. | |
| int | Verbosity (int v) |
| Set the current verbosity level. | |
A simple debug printer class used in MCSB.
dbprinter is used throughout MCSB, both internally and in the public interface. It provides the ability to set debug print verbosity at runtime.
1.8.5