import os

from tornado.ioloop import IOLoop
from tornado.web import Application
from tornado.httpserver import HTTPServer

from . import handlers


class LogsterApplication(Application):
    handlers = [
        (r'/', handlers.IndexHandler),
    ]

    settings = {
        'template_path': os.path.join(
            os.path.dirname(__file__), '../templates')
    }

    def __init__(self):
        super(LogsterApplication, self).__init__(
            handlers=self.handlers,
            **self.settings
        )


def run_server():
    app = LogsterApplication()
    server = HTTPServer(app)
    server.listen(8888)

    IOLoop.current().start()

import os

from tornado.ioloop import IOLoop
from tornado.web import Application
from tornado.httpserver import HTTPServer

from . import handlers
from .conf import config


class LogsterApplication(Application):
    handlers = [
        (r'/', handlers.IndexHandler),
    ]

    settings = {
        'template_path': os.path.join(
            os.path.dirname(__file__), '../templates')
    }

    def __init__(self):
        super(LogsterApplication, self).__init__(
            handlers=self.handlers,
            **self.settings
        )


def run_server():
    app = LogsterApplication()
    server = HTTPServer(app)
    server.listen(config['app']['port'])

    IOLoop.current().start()

Use post value from config
Use post value from config
