一.python日志模块二.python数据库连接三.时间处理模块四.python传递参数给shell五.发送邮件(py2.7)六.python计划任务七.supervisor/etc/supervisor.conf
[program:check]
command=python/data/remote_back/checkbackup.py
directory=/data/remote_back
user=root
root@GS_TM..
分类:
编程语言 时间:
2015-03-03 06:28:52
阅读次数:
319
"""
author:htfang
date:20141215
loggingmodule,usemultiplelogswithoutalogconfigfile
"""
importlogging
fromloggingimport(DEBUG,
CRITICAL,
FATAL,
ERROR,
WARNING,
WARN,
INFO,
DEBUG,
NOTSET)
importsys
classLogBuilder():
"""
asarookie,youneed‘ntknowhowthisbuil..
分类:
编程语言 时间:
2014-12-15 22:11:41
阅读次数:
270