using API calls to show logs.