heapwolf/debug

extend

davidmarkclements opened this issue · 1 comments

it's just sugar, but useful for encouraging convention:

Debug d('foo');
Debug d.extend('bar');

is the same as

Debug d('foo');
Debug d('foo:bar');

also a way to swap out the io stream:

Debug d('log');
Debug d.extend('error', std::cerr);