diff --git a/.project b/.project new file mode 100644 index 0000000..d620ad4 --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + leyk + + + + + + org.python.pydev.PyDevBuilder + + + + + + org.python.pydev.pythonNature + + diff --git a/.pydevproject b/.pydevproject new file mode 100644 index 0000000..aa7a29a --- /dev/null +++ b/.pydevproject @@ -0,0 +1,8 @@ + + + + /${PROJECT_DIR_NAME} + + python interpreter + Default + diff --git a/config_example/config.py b/config_example/config.py new file mode 100644 index 0000000..216a563 --- /dev/null +++ b/config_example/config.py @@ -0,0 +1,31 @@ +#!/usr/bin/env python +# -*- coding: UTF-8 -*- + +import geo +import socket_protocol +import state_machine +import stringtools +import task +import tcp_socket + +secret = b'give_a_secret_string_here' +server_ip = '127.0.0.1' +server_port = 10001 + +SHORT_FMT = "%(asctime)s: %(levelname)-7s - %(message)s" +""" A short formatter including the most important information""" +LONG_FMT = """~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +File "%(pathname)s", line %(lineno)d, in %(funcName)s +%(asctime)s: %(levelname)-7s - %(message)s""" +""" A long formatter which results in links to the source code inside Eclipse""" + +loggers = ( + ('APP', 'DEBUG'), + (geo.logger_name, 'DEBUG'), + (socket_protocol.logger_name, 'DEBUG'), + (state_machine.logger_name, 'DEBUG'), + (stringtools.logger_name, 'DEBUG'), + (task.logger_name, 'DEBUG'), + (tcp_socket.logger_name, 'DEBUG'), +) +formatter = LONG_FMT