Seems a bit hackish. Would at least good to be able to set the logger.