Skip to main content

zyputility contains readconfig & log

Project description

----读取配置文件,将配置文件信息转化成dict的形式,引用说明C = conf(),C['配置文件参数名']

----def __init__(self, filename, level='info', when='D', back_count=3, fmt='''[时间]:%(asctime)s
:param filename: log名
:param level: bug等级
:param when: 时间间隔单位 S 秒、M 分、H 小时、D 天、W 星期、midnight 每天凌晨
:param back_count: log保留个数,如果超过这个个数,就会自动删除,
:param fmt: log格式化
----如此引用 Logger('filename',level='info', when='D', back_count=3)

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for ZypUtility, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size ZypUtility-0.1.3.tar.gz (3.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page