Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 75 lines (63 sloc) 2.013 kb
db17268f » kelvl
2012-10-17 Initial github check in
1 # Application parameters
2 ui = {
3 'port': 9000,
4 'address': 'localhost',
5 }
6
7 proxy = {
8
9 # address and port shadow runs on
10 'address': '0.0.0.0',
11 'port': 8081,
12
13
14 # old server or server containing existing code
15 'old_servers': ['http://localhost:8081/'],
16 'old_servers_timeout': 15.0,
17
18 'old_servers_additional_get_params': [],
19 'old_servers_additional_post_params': [],
20 'old_servers_additional_headers': [],
21
22 # new server or server contain new code
23 'new_servers': ['http://localhost:8081/'],
24 'new_servers_timeout': 15.0,
25
26 'new_servers_additional_get_params': [],
27 'new_servers_additional_post_params': [],
28 'new_servers_additional_headers': [],
29 }
30
31 service = 'shadow.service.ShadowService'
32
33 program_name = "shadow"
34
35 import os
36
37 debug = True
38
39 file_prefix = './log/'
40 logconfig = {
41 'version': 1,
42 'formatters': {
43 "default": {
44 "format": "[%(asctime)s,%(msecs)03d] %(levelname) 7s - \"-\" [%(filename)s:%(lineno)d %(funcName)s] | %(message)s",
45 "datefmt": "%d/%b/%Y %H:%M:%S"
46 },
47 "default_pywsgi_access_fix": {
48 "format": "%(message)s"
49 }
50 },
51 'handlers': {
52 'console': {
53 "class": "logging.StreamHandler",
54 "formatter": "default",
55 "stream": "ext://sys.stderr"
56 },
57 'results': {
58 'class': 'logging.FileHandler',
59 'formatter': 'default_pywsgi_access_fix',
c83f1b83 » kelvl
2012-10-18 Adding Travis integration
60 "filename": os.path.join(file_prefix, "{program_name!r}-results.log".format(program_name=program_name))
db17268f » kelvl
2012-10-17 Initial github check in
61 }
62 },
63 'loggers': {
64 'shadow': {
65 'level': 'DEBUG',
66 'propogate': 0,
67 'handlers': ['console']
68 },
69 'shadow.results': {
70 'level': 'DEBUG',
71 'propogate': 0,
72 'handlers': ['results']
73 }
74 }
75 }
Something went wrong with that request. Please try again.