wrong usage of logger