use of logger