Added logs view and logs querying functions