baseimage-tutorial-framework/supervisor/tfw_server.py
2019-06-28 17:44:49 +02:00

17 lines
395 B
Python

from sys import stderr
from tornado.ioloop import IOLoop
from tfw.server import TFWServer
from tfw.config import TFWENV
from tfw.logging import Log, Logger, LogFormatter, VerboseLogFormatter
if __name__ == '__main__':
Logger([
Log(stderr, LogFormatter(20)),
Log(TFWENV.LOGFILE, VerboseLogFormatter())
]).start()
TFWServer().listen()
IOLoop.instance().start()