Fix setup of logger object.