Commit 0282b503 authored by Michal 'vorner' Vaner's avatar Michal 'vorner' Vaner
Browse files

Initialize logging

parent f33a758b
#!/usr/bin/python
from twisted.internet import reactor
from twisted.internet.endpoints import TCP6ServerEndpoint
import logging
from client import ClientFactory
from plugin import Plugins
import count_plugin
import buckets_plugin
logging.basicConfig(level=logging.DEBUG, format='%(name)s@%(module)s:%(lineno)s\t%(asctime)s\t%(levelname)s\t%(message)s')
plugins = Plugins()
count_plugin.CountPlugin(plugins)
buckets_plugin.BucketsPlugin(plugins)
# Some configuration, to load the port from?
endpoint = TCP6ServerEndpoint(reactor, 5678)
endpoint.listen(ClientFactory(plugins))
logging.info('Init done')
reactor.run()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment