added api method to get logs