Answers for "error in log file python"

0

tail a log file with python

pip or pip3 install sh

from sh import tail
# runs forever
for line in tail("-f", "/var/log/some_log_file.log", _iter=True):
    print(line)
Posted by: Guest on November-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language