def main():
#FORMAT = "%(asctime)-15s %(message)s"
FORMAT = "%(asctime)-15s - %(name)s - %(levelname)s - %(message)s"
logging.basicConfig(filename='/tmp/NGAS_MWA/log/ngamsJobMAN.log', level=logging.DEBUG, format = FORMAT)
logger.info('ngamsJobMAN Started.......')
config = getConfig()
if (not config):
exit(1)
# start the web server supported by bottle and paste
run(host = config.get('Web Server', 'IpAddress'),
server = 'paste',
port = config.getint('Web Server', 'Port'),
debug = config.getboolean('Web Server', 'Debug'))
logger.info('ngamsJobMAN Shutdown.......')
评论列表
文章目录