Create a python package to analyze log data from a web server. The package should parse log entries and identify the top 10 most visited URLs on a daily basis.
sample.log 

[2020-06-03 00:12:30] 192.168.0.1 GET /images/index.jpg 200 

[2020-06-03 00:15:20] 192.168.0.2 GET /css/style.css 200

[2020-06-03 00:20:17] 192.168.0.2 GET /js/app.js 200

[2020-06-04 00:14:40] 192.168.0.1 GET /images/index.jpg 200

[2020-06-04 00:17:30] 192.168.0.2 GET /css/style.css 200

[2020-06-04 00:22:17] 192.168.0.2 GET /js/app.js 200
import re
from collections import Counter

def read_logs(log_file):
 log_entries = []
 with open(log_file) as f:
 lines = f.readlines()
 for line in lines:
 log_entry = line.strip().split(' ')
 log_entries.append(log_entry)
 return log_entries

def find_top_urls(log_file, day):
 log_entries = read_logs(log_file)
 urls = [log[2] for log in log_entries if log[0].startswith(day)]
 counter_urls = Counter(urls)
 return counter_urls.most_common(10)

if __name__ == "__main__":
 top_urls = find_top_urls('sample.log', '2020-06-04')
 print(top_urls)