Some improvements of logger