Added logging base class to support a variety of logging requirements.
Added unit test.