mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-12 19:37:16 +00:00
17 lines
395 B
Python
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()
|