【文件属性】:
文件名称:log_monitor:监控日志
文件大小:60.04MB
文件格式:ZIP
更新时间:2021-05-11 02:15:47
Ruby
日志监控器
监视Web服务器的日志。 并通过电子邮件,Webpost,文件或控制台发出警报。
安装
添加
gem "log-monitor"
到Gemfile。
用法
作为RAILS插件
创建config / log-monitor.yml
monitor:
target: /tmp/log/development.log
words:
- Completed 500 Internal Server Error
- No route matches
method: file # ,console, email or webpost
file: /tmp/log-monitor.log
webpost: http://localhost:3000/monitor/post # ignored which not selected as method
email: