write socket log file