Added logger interface.

Added logger interface to implement a custom logger.