Skip to content

功能:监控日志文件是否有新增内容,如果有则输出新增内容。

License

Notifications You must be signed in to change notification settings

xmanrui/PyWatchLog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyWatchLog

功能:监控日志文件是否有新增内容,如果有则输出新增内容。

使用方法

  • 见demo.py

测试

  • 安装:pip install watchdog
  • 1.运行demo.py
  • 2.generate_log函数会不断生成日志到demo.log文件中
  • 3.run_watch_log函数会打印出demo.log新增的内容

About

功能:监控日志文件是否有新增内容,如果有则输出新增内容。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages