Automatically log to tempfile in socket_server.