I use tailer for parse logs in python but it’s broken if Log Rotation on server. What decision can be used instead? tail -f in popen – it is not Pythonic way
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It shouldn’t be that difficult to add log rotation functionality. For example, if you have:
You could add a callback to a function that periodically checked for the existence of the next filename. If it exists, break out of the loop and begin one on the new file.