(CFACT-24) Hide the log4cxx logging implementation.

Adding macros that hide the usage of log4cxx and make formatting of
messages easier.

Instead of using the log4cxx macros, use the LOG_DECLARE_NAMESPACE and
LOG_<DEBUG|INFO|WARNING|ERROR|FATAL> macros.