How to create additional debug objects, for writing to more than one ostream.
Each debug object is associated with one ostream. The default debug output macros Dout and DoutFatal use the default debug object libcwd::libcw_do. Other debug objects may be created as global objects; it is convenient to define new macros for each (custom) debug object using the generic macros LibcwDout and LibcwDoutFatal.
For example, add something like the following to your own "debug.h" file: