add logger

This commit is contained in:
ppwwyyxx
2014-12-12 23:15:59 +08:00
parent f136829a2b
commit bf7697afaf
5 changed files with 85 additions and 49 deletions
+6
View File
@@ -0,0 +1,6 @@
import logging
logging.basicConfig(
format='\033[1;32m[%(asctime)s %(lineno)d@%(filename)s:%(name)s]\033[0m'
' %(message)s',
datefmt='%H:%M:%S', level=logging.INFO)