change logger object to singleton