Add logging capability.
Default output is now logger.