##// END OF EJS Templates
removed color formatter for production logs
marcink -
r1390:8f2bfd31 beta
parent child Browse files
Show More
@@ -1,233 +1,233 b''
1 ################################################################################
1 ################################################################################
2 ################################################################################
2 ################################################################################
3 # RhodeCode - Pylons environment configuration #
3 # RhodeCode - Pylons environment configuration #
4 # #
4 # #
5 # The %(here)s variable will be replaced with the parent directory of this file#
5 # The %(here)s variable will be replaced with the parent directory of this file#
6 ################################################################################
6 ################################################################################
7
7
8 [DEFAULT]
8 [DEFAULT]
9 debug = true
9 debug = true
10 pdebug = false
10 pdebug = false
11 ################################################################################
11 ################################################################################
12 ## Uncomment and replace with the address which should receive ##
12 ## Uncomment and replace with the address which should receive ##
13 ## any error reports after application crash ##
13 ## any error reports after application crash ##
14 ## Additionally those settings will be used by RhodeCode mailing system ##
14 ## Additionally those settings will be used by RhodeCode mailing system ##
15 ################################################################################
15 ################################################################################
16 #email_to = admin@localhost
16 #email_to = admin@localhost
17 #error_email_from = paste_error@localhost
17 #error_email_from = paste_error@localhost
18 #app_email_from = rhodecode-noreply@localhost
18 #app_email_from = rhodecode-noreply@localhost
19 #error_message =
19 #error_message =
20
20
21 #smtp_server = mail.server.com
21 #smtp_server = mail.server.com
22 #smtp_username =
22 #smtp_username =
23 #smtp_password =
23 #smtp_password =
24 #smtp_port =
24 #smtp_port =
25 #smtp_use_tls = false
25 #smtp_use_tls = false
26 #smtp_use_ssl = true
26 #smtp_use_ssl = true
27
27
28 [server:main]
28 [server:main]
29 ##nr of threads to spawn
29 ##nr of threads to spawn
30 threadpool_workers = 5
30 threadpool_workers = 5
31
31
32 ##max request before thread respawn
32 ##max request before thread respawn
33 threadpool_max_requests = 10
33 threadpool_max_requests = 10
34
34
35 ##option to use threads of process
35 ##option to use threads of process
36 use_threadpool = true
36 use_threadpool = true
37
37
38 use = egg:Paste#http
38 use = egg:Paste#http
39 host = 127.0.0.1
39 host = 127.0.0.1
40 port = 8001
40 port = 8001
41
41
42 [app:main]
42 [app:main]
43 use = egg:rhodecode
43 use = egg:rhodecode
44 full_stack = true
44 full_stack = true
45 static_files = true
45 static_files = true
46 lang=en
46 lang=en
47 cache_dir = %(here)s/data
47 cache_dir = %(here)s/data
48 index_dir = %(here)s/data/index
48 index_dir = %(here)s/data/index
49 app_instance_uuid = prod1234
49 app_instance_uuid = prod1234
50 cut_off_limit = 256000
50 cut_off_limit = 256000
51 force_https = false
51 force_https = false
52 commit_parse_limit = 50
52 commit_parse_limit = 50
53 use_gravatar = true
53 use_gravatar = true
54
54
55 ####################################
55 ####################################
56 ### CELERY CONFIG ####
56 ### CELERY CONFIG ####
57 ####################################
57 ####################################
58 use_celery = false
58 use_celery = false
59 broker.host = localhost
59 broker.host = localhost
60 broker.vhost = rabbitmqhost
60 broker.vhost = rabbitmqhost
61 broker.port = 5672
61 broker.port = 5672
62 broker.user = rabbitmq
62 broker.user = rabbitmq
63 broker.password = qweqwe
63 broker.password = qweqwe
64
64
65 celery.imports = rhodecode.lib.celerylib.tasks
65 celery.imports = rhodecode.lib.celerylib.tasks
66
66
67 celery.result.backend = amqp
67 celery.result.backend = amqp
68 celery.result.dburi = amqp://
68 celery.result.dburi = amqp://
69 celery.result.serialier = json
69 celery.result.serialier = json
70
70
71 #celery.send.task.error.emails = true
71 #celery.send.task.error.emails = true
72 #celery.amqp.task.result.expires = 18000
72 #celery.amqp.task.result.expires = 18000
73
73
74 celeryd.concurrency = 2
74 celeryd.concurrency = 2
75 #celeryd.log.file = celeryd.log
75 #celeryd.log.file = celeryd.log
76 celeryd.log.level = debug
76 celeryd.log.level = debug
77 celeryd.max.tasks.per.child = 1
77 celeryd.max.tasks.per.child = 1
78
78
79 #tasks will never be sent to the queue, but executed locally instead.
79 #tasks will never be sent to the queue, but executed locally instead.
80 celery.always.eager = false
80 celery.always.eager = false
81
81
82 ####################################
82 ####################################
83 ### BEAKER CACHE ####
83 ### BEAKER CACHE ####
84 ####################################
84 ####################################
85 beaker.cache.data_dir=%(here)s/data/cache/data
85 beaker.cache.data_dir=%(here)s/data/cache/data
86 beaker.cache.lock_dir=%(here)s/data/cache/lock
86 beaker.cache.lock_dir=%(here)s/data/cache/lock
87
87
88 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
88 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
89
89
90 beaker.cache.super_short_term.type=memory
90 beaker.cache.super_short_term.type=memory
91 beaker.cache.super_short_term.expire=10
91 beaker.cache.super_short_term.expire=10
92
92
93 beaker.cache.short_term.type=memory
93 beaker.cache.short_term.type=memory
94 beaker.cache.short_term.expire=60
94 beaker.cache.short_term.expire=60
95
95
96 beaker.cache.long_term.type=memory
96 beaker.cache.long_term.type=memory
97 beaker.cache.long_term.expire=36000
97 beaker.cache.long_term.expire=36000
98
98
99 beaker.cache.sql_cache_short.type=memory
99 beaker.cache.sql_cache_short.type=memory
100 beaker.cache.sql_cache_short.expire=10
100 beaker.cache.sql_cache_short.expire=10
101
101
102 beaker.cache.sql_cache_med.type=memory
102 beaker.cache.sql_cache_med.type=memory
103 beaker.cache.sql_cache_med.expire=360
103 beaker.cache.sql_cache_med.expire=360
104
104
105 beaker.cache.sql_cache_long.type=file
105 beaker.cache.sql_cache_long.type=file
106 beaker.cache.sql_cache_long.expire=3600
106 beaker.cache.sql_cache_long.expire=3600
107
107
108 ####################################
108 ####################################
109 ### BEAKER SESSION ####
109 ### BEAKER SESSION ####
110 ####################################
110 ####################################
111 ## Type of storage used for the session, current types are
111 ## Type of storage used for the session, current types are
112 ## dbm, file, memcached, database, and memory.
112 ## dbm, file, memcached, database, and memory.
113 ## The storage uses the Container API
113 ## The storage uses the Container API
114 ##that is also used by the cache system.
114 ##that is also used by the cache system.
115 beaker.session.type = file
115 beaker.session.type = file
116
116
117 beaker.session.key = rhodecode
117 beaker.session.key = rhodecode
118 beaker.session.secret = g654dcno0-9873jhgfreyu
118 beaker.session.secret = g654dcno0-9873jhgfreyu
119 beaker.session.timeout = 36000
119 beaker.session.timeout = 36000
120
120
121 ##auto save the session to not to use .save()
121 ##auto save the session to not to use .save()
122 beaker.session.auto = False
122 beaker.session.auto = False
123
123
124 ##true exire at browser close
124 ##true exire at browser close
125 #beaker.session.cookie_expires = 3600
125 #beaker.session.cookie_expires = 3600
126
126
127
127
128 ################################################################################
128 ################################################################################
129 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
129 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
130 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
130 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
131 ## execute malicious code after an exception is raised. ##
131 ## execute malicious code after an exception is raised. ##
132 ################################################################################
132 ################################################################################
133 set debug = false
133 set debug = false
134
134
135 ##################################
135 ##################################
136 ### LOGVIEW CONFIG ###
136 ### LOGVIEW CONFIG ###
137 ##################################
137 ##################################
138 logview.sqlalchemy = #faa
138 logview.sqlalchemy = #faa
139 logview.pylons.templating = #bfb
139 logview.pylons.templating = #bfb
140 logview.pylons.util = #eee
140 logview.pylons.util = #eee
141
141
142 #########################################################
142 #########################################################
143 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
143 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
144 #########################################################
144 #########################################################
145 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db
145 #sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db
146 sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode
146 sqlalchemy.db1.url = postgresql://postgres:qwe@localhost/rhodecode
147 sqlalchemy.db1.echo = false
147 sqlalchemy.db1.echo = false
148 sqlalchemy.db1.pool_recycle = 3600
148 sqlalchemy.db1.pool_recycle = 3600
149 sqlalchemy.convert_unicode = true
149 sqlalchemy.convert_unicode = true
150
150
151 ################################
151 ################################
152 ### LOGGING CONFIGURATION ####
152 ### LOGGING CONFIGURATION ####
153 ################################
153 ################################
154 [loggers]
154 [loggers]
155 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
155 keys = root, routes, rhodecode, sqlalchemy, beaker, templates
156
156
157 [handlers]
157 [handlers]
158 keys = console, console_sql
158 keys = console, console_sql
159
159
160 [formatters]
160 [formatters]
161 keys = generic, color_formatter, color_formatter_sql
161 keys = generic, color_formatter, color_formatter_sql
162
162
163 #############
163 #############
164 ## LOGGERS ##
164 ## LOGGERS ##
165 #############
165 #############
166 [logger_root]
166 [logger_root]
167 level = NOTSET
167 level = NOTSET
168 handlers = console
168 handlers = console
169
169
170 [logger_routes]
170 [logger_routes]
171 level = DEBUG
171 level = DEBUG
172 handlers =
172 handlers =
173 qualname = routes.middleware
173 qualname = routes.middleware
174 # "level = DEBUG" logs the route matched and routing variables.
174 # "level = DEBUG" logs the route matched and routing variables.
175 propagate = 1
175 propagate = 1
176
176
177 [logger_beaker]
177 [logger_beaker]
178 level = DEBUG
178 level = DEBUG
179 handlers =
179 handlers =
180 qualname = beaker.container
180 qualname = beaker.container
181 propagate = 1
181 propagate = 1
182
182
183 [logger_templates]
183 [logger_templates]
184 level = INFO
184 level = INFO
185 handlers =
185 handlers =
186 qualname = pylons.templating
186 qualname = pylons.templating
187 propagate = 1
187 propagate = 1
188
188
189 [logger_rhodecode]
189 [logger_rhodecode]
190 level = DEBUG
190 level = DEBUG
191 handlers =
191 handlers =
192 qualname = rhodecode
192 qualname = rhodecode
193 propagate = 1
193 propagate = 1
194
194
195 [logger_sqlalchemy]
195 [logger_sqlalchemy]
196 level = INFO
196 level = INFO
197 handlers = console_sql
197 handlers = console_sql
198 qualname = sqlalchemy.engine
198 qualname = sqlalchemy.engine
199 propagate = 0
199 propagate = 0
200
200
201 ##############
201 ##############
202 ## HANDLERS ##
202 ## HANDLERS ##
203 ##############
203 ##############
204
204
205 [handler_console]
205 [handler_console]
206 class = StreamHandler
206 class = StreamHandler
207 args = (sys.stderr,)
207 args = (sys.stderr,)
208 level = INFO
208 level = INFO
209 formatter = color_formatter
209 formatter = generic
210
210
211 [handler_console_sql]
211 [handler_console_sql]
212 class = StreamHandler
212 class = StreamHandler
213 args = (sys.stderr,)
213 args = (sys.stderr,)
214 level = WARN
214 level = WARN
215 formatter = color_formatter_sql
215 formatter = generic
216
216
217 ################
217 ################
218 ## FORMATTERS ##
218 ## FORMATTERS ##
219 ################
219 ################
220
220
221 [formatter_generic]
221 [formatter_generic]
222 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
222 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
223 datefmt = %Y-%m-%d %H:%M:%S
223 datefmt = %Y-%m-%d %H:%M:%S
224
224
225 [formatter_color_formatter]
225 [formatter_color_formatter]
226 class=rhodecode.lib.colored_formatter.ColorFormatter
226 class=rhodecode.lib.colored_formatter.ColorFormatter
227 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
227 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
228 datefmt = %Y-%m-%d %H:%M:%S
228 datefmt = %Y-%m-%d %H:%M:%S
229
229
230 [formatter_color_formatter_sql]
230 [formatter_color_formatter_sql]
231 class=rhodecode.lib.colored_formatter.ColorFormatterSql
231 class=rhodecode.lib.colored_formatter.ColorFormatterSql
232 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
232 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
233 datefmt = %Y-%m-%d %H:%M:%S No newline at end of file
233 datefmt = %Y-%m-%d %H:%M:%S
General Comments 0
You need to be logged in to leave comments. Login now