-
Notifications
You must be signed in to change notification settings - Fork 10
/
paster.ini.in
executable file
·146 lines (118 loc) · 3.52 KB
/
paster.ini.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# WSGI CONFIGURATION FILE
[DEFAULT]
debug=${instance:debug}
[composite:main]
use=egg:Paste#urlmap
/media/=pmedia
/=pmain
/threads/=watch_threads
[pipeline:pmain]
pipeline= fvhm exc translogger projectapp
[pipeline:pmedia]
pipeline= fvhm translogger exc staticapp
[app:watch_threads]
use=egg:Paste#watch_threads
[filter:fvhm]
use = egg:repoze.vhm#vhm_xheaders
[filter:translogger]
use=egg:Paste#translogger
setup_console_handler = False
logger_name = wsgi
[filter:debug]
use=egg:Paste#printdebug
[filter:exc]
use=egg:WebError#evalerror
[app:projectapp]
use=egg:${instance:ep}
zcmls=
# indicate here full path to zcmls or
# relative path inside your egg
pyramid.includes=
# various addons pre configurations
pyramid.default_locale_name = en
mako.directories=${instance:egg}:templates
pyramid.debug_all=${instance:debug}
#pyramid.debug_authorization=${instance:debug}
#pyramid.debug_routematch=${instance:debug}
#pyramid.debug_templates=${instance:debug}
pyramid.reload_all=${instance:debug}
#pyramid.reload_assets=${instance:debug}
#pyramid.reload_resources=${instance:debug}
#pyramid.reload_templates=${instance:debug}
pyramid.includes =
pyramid_debugtoolbar
#debug toolbar
debugtoolbar.intercept_exc=${instance:intercept_exc_debug}
debugtoolbar.eval_exc=${instance:debug}
debugtoolbar.enabled=${instance:debug}
# oroject settings
download_dir = ${buildout:directory}/src/convertit/download_dir
download_max_age = 60
converted_dir = ${buildout:directory}/src/convertit/static/converted
# The retrieve url of converted files
# It can be a full url like http://static.domain.tld/full/path/
converted_url = converted
converted_max_age = 60
[app:staticapp]
use = egg:Paste#pkg_resources
egg=${instance:egg}
resource_name=static/
[loggers]
keys = root,wsgi,routes
[handlers]
keys = fconsole,console,accesslog,errorlog
[formatters]
keys = generic,accesslog
# Send warnings that are not caught by other loggers to the console
[logger_root]
level = NOTSET
handlers = console,fconsole
# Send all messages to the 'wsgi' logger to the accesslog and errorlog handlers
[logger_wsgi]
level = NOTSET
handlers = accesslog,errorlog,console,fconsole
qualname = wsgi
propagate = 0
# Routes (the URL dispatcher) sends debug information to the 'routes.middleware' logger
# with DEBUG level.
[logger_routes]
level = NOTSET
handlers = console,fconsole
qualname = routes.middleware
propagate = 0
# Handler for printing messages to the console
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = INFO
formatter = generic
# Handler for writing access.log style log lines to an "access.log" file
[handler_fconsole]
class = FileHandler
args = ('${buildout:directory}/var/log/${name}.console.log','a')
level = INFO
formatter = generic
# Handler for writing access.log style log lines to an "access.log" file
[handler_accesslog]
class = FileHandler
args = ('${buildout:directory}/var/log/${name}.access.log','a')
level = INFO
formatter = accesslog
# Handler for writing error messages to an "error.log" file
[handler_errorlog]
class = FileHandler
args = ('${buildout:directory}/var/log/${name}.error.log','a')
level = WARNING
formatter = generic
# A generic formatter that prints the time, the logger's name, the level and the message
[formatter_generic]
format = %(asctime)s %(name)s[%(levelname)s] %(message)s
# A trivial formatter that just passes-through the log message.
# Translogger already creates Apache-style log messages. No need to change that.
[formatter_accesslog]
format = %(message)s
[server:main]
use=${server}
host=${host}
port=${port}
# vim:set et ts=4 sts=4 ft=cfg: