logger fix (renamed logger object to log)