import os logging logging basicConfig level logging DEBUG format ascti

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
#import os, logging
#logging.basicConfig(level=logging.DEBUG,
# format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s',
# datefmt='%a, %d %b %Y %H:%M:%S')
#fileLog = logging.FileHandler(os.path.join(DIRNAME, LOGFILE), 'w')
#fileLog.setLevel(logging.ERROR)
# add the handler to the root logger
#logging.getLogger('').addHandler(fileLog)
#logging.getLogger('payment.Protx').addHandler(fileLog)
#logging.getLogger('keyedcache').setLevel(logging.INFO)
#logging.getLogger('l10n').setLevel(logging.INFO)
#logging.info("Satchmo Started")