Pagination implemented for logs.