Configure event callback from config file