Added logging with a default null logger and a simple console logger.