|
@@ -0,0 +1,41 @@
|
|
1
|
+#!/usr/bin/env python
|
|
2
|
+# -*- coding: UTF-8 -*-
|
|
3
|
+
|
|
4
|
+import socket_protocol
|
|
5
|
+import stringtools
|
|
6
|
+import task
|
|
7
|
+import tcp_socket
|
|
8
|
+
|
|
9
|
+FULL_SCRREN = False
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+# TCP-Server
|
|
13
|
+#
|
|
14
|
+server_out_secret = None # or set a secret to require client authentification: b'give_a_secret_string_here'
|
|
15
|
+server_out_ip = '192.168.0.121'
|
|
16
|
+server_out_port = 37000
|
|
17
|
+server_in_secret = None # or set a secret to require client authentification: b'give_a_secret_string_here'
|
|
18
|
+server_in_ip = '192.168.0.120'
|
|
19
|
+server_in_port = 37000
|
|
20
|
+
|
|
21
|
+server_garage_secret = None # or set a secret to require client authentification: b'give_a_secret_string_here'
|
|
22
|
+server_garage_ip = '192.168.0.13'
|
|
23
|
+server_garage_port = 10000
|
|
24
|
+# Logging
|
|
25
|
+#
|
|
26
|
+LOGTARGET = 'stdout' # possible choices are: 'logfile' or 'stdout'
|
|
27
|
+SHORT_FMT = "%(asctime)s: %(levelname)-7s - %(message)s"
|
|
28
|
+""" A short formatter including the most important information"""
|
|
29
|
+LONG_FMT = """~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
30
|
+File "%(pathname)s", line %(lineno)d, in %(funcName)s
|
|
31
|
+%(asctime)s: %(levelname)-7s - %(message)s"""
|
|
32
|
+""" A long formatter which results in links to the source code inside Eclipse"""
|
|
33
|
+
|
|
34
|
+loggers = (
|
|
35
|
+ ('APP', 'DEBUG'),
|
|
36
|
+ (socket_protocol.logger_name, 'WARNING'),
|
|
37
|
+ (stringtools.logger_name, 'WARNING'),
|
|
38
|
+ (task.logger_name, 'WARNING'),
|
|
39
|
+ (tcp_socket.logger_name, 'WARNING'),
|
|
40
|
+)
|
|
41
|
+formatter = LONG_FMT
|