add api to fetch server-side logs