Initializing repository on logging.