A class and some macros that make logging easy.