I\'m writing a program that will parse an Apache log file periodically to log it\'s visitors, bandwidth usage, etc..
The problem is, I don\'t want to open the log an
Easy but not recommended :):
last_line_processed = get_last_line_processed() with open('file.log') as log for record_number, record in enumerate(log): if record_number >= last_line_processed: parse_log(record)