PyWatchLog 功能:监控日志文件是否有新增内容,如果有则输出新增内容。 使用方法 见demo.py 测试 安装:pip install watchdog 1.运行demo.py 2.generate_log函数会不断生成日志到demo.log文件中 3.run_watch_log函数会打印出demo.log新增的内容