Added logger to socket connection