BNetDebug provides a few functions that let you turn on and off debug output, and dump raw data to stderr in a clean format.

All the member functions are static; instead of creating a BNetDebug object, call them like this:

BNetDebug::Print("Starting server...");

Debug output is off by default; call BNetDebug::Enable() to enable it.

Creative Commons License
Legal Notice
This work is licensed under a Creative Commons Attribution-Non commercial-No Derivative Works 3.0 License.