refacto path of logs