char) buffer with a given size to a debug ostream, escaping non-printable characters. More... Looping over all debug channels.
The macro ForAllDebugChannels allows you to run over all debug channels.
For example,
which turns all channels on. And
which turns all channels off.
Looping over all debug objects.
The macro ForAllDebugObjects allows you to run over all debug objects.
For example,
would set the output stream of all debug objects to std::cerr.
Find debug channel with label label.
List all debug channels to a given debug object.
Example:
Example of output:
DEBUG : Disabled NOTICE : Enabled WARNING : Enabled SYSTEM : Enabled MALLOC : Disabled LLISTS : Disabled KERNEL : Disabled IO : Disabled FOO : Enabled BAR : Enabled
Where FOO and BAR are user defined channels in this example.
References libcwd::channels::dc::always, libcwd::channels::dc::bfd, libcwd::channels::dc::malloc, libcwd::noprefix_cf, libcwd::channel_ct::off(), and libcwd::channel_ct::on().