Moved logging utility functions to base class.