文件名称:ayu:关注网站健康的过程
文件大小:4KB
文件格式:ZIP
更新时间:2024-07-06 23:40:29
Python
例子 记录到旋转文件 from ayu import Checker from ayu . handlers import LogHandler import logging import logging . handlers logger = logging . getLogger ( 'cool-languages-logger' ) logger . setLevel ( logging . DEBUG ) handler = logging . handlers . RotatingFileHandler ( 'health.log' , maxBytes = 200 , backupCount = 5 ) logger . addHandler ( handler ) c = Checker (( 'https://www.python.org/' ,
【文件预览】:
ayu-master
----requirements.txt(16B)
----LICENSE(0B)
----setup.py(382B)
----README.md(562B)
----ayu()
--------are_you_up.py(1KB)
--------handlers.py(4KB)
--------emails.py(716B)
--------__init__.py(50B)
----.gitignore(682B)