Implemented basic logger.