|
@@ -0,0 +1,31 @@
|
|
1
|
+#!/usr/bin/env python
|
|
2
|
+# -*- coding: UTF-8 -*-
|
|
3
|
+
|
|
4
|
+import geo
|
|
5
|
+import socket_protocol
|
|
6
|
+import state_machine
|
|
7
|
+import stringtools
|
|
8
|
+import task
|
|
9
|
+import tcp_socket
|
|
10
|
+
|
|
11
|
+secret = b'give_a_secret_string_here'
|
|
12
|
+server_ip = '127.0.0.1'
|
|
13
|
+server_port = 10001
|
|
14
|
+
|
|
15
|
+SHORT_FMT = "%(asctime)s: %(levelname)-7s - %(message)s"
|
|
16
|
+""" A short formatter including the most important information"""
|
|
17
|
+LONG_FMT = """~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
18
|
+File "%(pathname)s", line %(lineno)d, in %(funcName)s
|
|
19
|
+%(asctime)s: %(levelname)-7s - %(message)s"""
|
|
20
|
+""" A long formatter which results in links to the source code inside Eclipse"""
|
|
21
|
+
|
|
22
|
+loggers = (
|
|
23
|
+ ('APP', 'DEBUG'),
|
|
24
|
+ (geo.logger_name, 'DEBUG'),
|
|
25
|
+ (socket_protocol.logger_name, 'DEBUG'),
|
|
26
|
+ (state_machine.logger_name, 'DEBUG'),
|
|
27
|
+ (stringtools.logger_name, 'DEBUG'),
|
|
28
|
+ (task.logger_name, 'DEBUG'),
|
|
29
|
+ (tcp_socket.logger_name, 'DEBUG'),
|
|
30
|
+)
|
|
31
|
+formatter = LONG_FMT
|