##// END OF EJS Templates
some logging extras for development config files
marcink -
r716:1f8546cc beta
parent child Browse files
Show More
@@ -1,175 +1,187 b''
1 1 ################################################################################
2 2 ################################################################################
3 3 # rhodecode - Pylons environment configuration #
4 4 # #
5 5 # The %(here)s variable will be replaced with the parent directory of this file#
6 6 ################################################################################
7 7
8 8 [DEFAULT]
9 9 debug = true
10 10 ################################################################################
11 11 ## Uncomment and replace with the address which should receive ##
12 12 ## any error reports after application crash ##
13 13 ## Additionally those settings will be used by rhodecode mailing system ##
14 14 ################################################################################
15 15 #email_to = admin@localhost
16 16 #error_email_from = paste_error@localhost
17 17 #app_email_from = rhodecode-noreply@localhost
18 18 #error_message =
19 19
20 20 #smtp_server = mail.server.com
21 21 #smtp_username =
22 22 #smtp_password =
23 23 #smtp_port =
24 24 #smtp_use_tls =
25 25
26 26 [server:main]
27 27 ##nr of threads to spawn
28 28 threadpool_workers = 5
29 29
30 30 ##max request before
31 31 threadpool_max_requests = 6
32 32
33 33 ##option to use threads of process
34 34 use_threadpool = false
35 35
36 36 use = egg:Paste#http
37 host = 127.0.0.1
37 host = 0.0.0.0
38 38 port = 5000
39 39
40 40 [app:main]
41 41 use = egg:rhodecode
42 42 full_stack = true
43 43 static_files = true
44 44 lang=en
45 45 cache_dir = %(here)s/data
46 46 index_dir = %(here)s/data/index
47 47
48 48 ####################################
49 49 ### BEAKER CACHE ####
50 50 ####################################
51 51 beaker.cache.data_dir=/%(here)s/data/cache/data
52 52 beaker.cache.lock_dir=/%(here)s/data/cache/lock
53 53 beaker.cache.regions=super_short_term,short_term,long_term,sql_cache_short,sql_cache_med,sql_cache_long
54 54
55 55 beaker.cache.super_short_term.type=memory
56 56 beaker.cache.super_short_term.expire=10
57 57
58 58 beaker.cache.short_term.type=memory
59 59 beaker.cache.short_term.expire=60
60 60
61 61 beaker.cache.long_term.type=memory
62 62 beaker.cache.long_term.expire=36000
63 63
64 64
65 65 beaker.cache.sql_cache_short.type=memory
66 66 beaker.cache.sql_cache_short.expire=5
67 67
68 68 beaker.cache.sql_cache_med.type=memory
69 69 beaker.cache.sql_cache_med.expire=360
70 70
71 71 beaker.cache.sql_cache_long.type=file
72 72 beaker.cache.sql_cache_long.expire=3600
73 73
74 74 ####################################
75 75 ### BEAKER SESSION ####
76 76 ####################################
77 77 ## Type of storage used for the session, current types are
78 78 ## "dbm", "file", "memcached", "database", and "memory".
79 79 ## The storage uses the Container API
80 80 ##that is also used by the cache system.
81 81 beaker.session.type = file
82 82
83 83 beaker.session.key = rhodecode
84 84 beaker.session.secret = g654dcno0-9873jhgfreyu
85 85 beaker.session.timeout = 36000
86 86
87 87 ##auto save the session to not to use .save()
88 88 beaker.session.auto = False
89 89
90 90 ##true exire at browser close
91 91 #beaker.session.cookie_expires = 3600
92 92
93 93
94 94 ################################################################################
95 95 ## WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT* ##
96 96 ## Debug mode will enable the interactive debugging tool, allowing ANYONE to ##
97 97 ## execute malicious code after an exception is raised. ##
98 98 ################################################################################
99 99 #set debug = false
100 100
101 101 ##################################
102 102 ### LOGVIEW CONFIG ###
103 103 ##################################
104 104 logview.sqlalchemy = #faa
105 105 logview.pylons.templating = #bfb
106 106 logview.pylons.util = #eee
107 107
108 108 #########################################################
109 109 ### DB CONFIGS - EACH DB WILL HAVE IT'S OWN CONFIG ###
110 110 #########################################################
111 111 sqlalchemy.db1.url = sqlite:///%(here)s/rhodecode.db
112 112 #sqlalchemy.db1.echo = False
113 113 #sqlalchemy.db1.pool_recycle = 3600
114 114 sqlalchemy.convert_unicode = true
115 115
116 116 ################################
117 117 ### LOGGING CONFIGURATION ####
118 118 ################################
119 119 [loggers]
120 keys = root, routes, rhodecode, sqlalchemy
120 keys = root, routes, rhodecode, sqlalchemy,beaker,templates
121 121
122 122 [handlers]
123 123 keys = console
124 124
125 125 [formatters]
126 126 keys = generic,color_formatter
127 127
128 128 #############
129 129 ## LOGGERS ##
130 130 #############
131 131 [logger_root]
132 132 level = NOTSET
133 133 handlers = console
134 134
135 135 [logger_routes]
136 136 level = DEBUG
137 137 handlers = console
138 138 qualname = routes.middleware
139 139 # "level = DEBUG" logs the route matched and routing variables.
140 140 propagate = 0
141 141
142 [logger_beaker]
143 level = ERROR
144 handlers = console
145 qualname = beaker.container
146 propagate = 0
147
148 [logger_templates]
149 level = INFO
150 handlers = console
151 qualname = pylons.templating
152 propagate = 0
153
142 154 [logger_rhodecode]
143 155 level = DEBUG
144 156 handlers = console
145 157 qualname = rhodecode
146 158 propagate = 0
147 159
148 160 [logger_sqlalchemy]
149 161 level = ERROR
150 162 handlers = console
151 163 qualname = sqlalchemy.engine
152 164 propagate = 0
153 165
154 166 ##############
155 167 ## HANDLERS ##
156 168 ##############
157 169
158 170 [handler_console]
159 171 class = StreamHandler
160 172 args = (sys.stderr,)
161 173 level = NOTSET
162 174 formatter = color_formatter
163 175
164 176 ################
165 177 ## FORMATTERS ##
166 178 ################
167 179
168 180 [formatter_generic]
169 181 format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
170 182 datefmt = %Y-%m-%d %H:%M:%S
171 183
172 184 [formatter_color_formatter]
173 185 class=rhodecode.lib.colored_formatter.ColorFormatter
174 186 format= %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
175 187 datefmt = %Y-%m-%d %H:%M:%S No newline at end of file
General Comments 0
You need to be logged in to leave comments. Login now