This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def on_file_emit(line): | |
# Do stuff with your line here: (line.strip()) | |
print(line) | |
def main(path): | |
with open(log, 'r') as file: | |
file.seek(0, 2) | |
while True: | |
line = file.readline() |