add logger everywhere and put a reset of log every 24h, add config to and fix a bug when write on it