|
a/pyforge/development.ini |
|
b/pyforge/development.ini |
|
... |
|
... |
149 |
|
149 |
|
150 |
[loggers]
|
150 |
[loggers]
|
151 |
keys = root, pyforge, sqlalchemy
|
151 |
keys = root, pyforge, sqlalchemy
|
152 |
|
152 |
|
153 |
[handlers]
|
153 |
[handlers]
|
154 |
keys = console
|
154 |
keys = console, rtstats
|
155 |
|
155 |
|
156 |
[formatters]
|
156 |
[formatters]
|
157 |
keys = generic
|
157 |
keys = generic, rtstats
|
158 |
|
158 |
|
159 |
# If you create additional loggers, add them as a key to [loggers]
|
159 |
# If you create additional loggers, add them as a key to [loggers]
|
160 |
[logger_root]
|
160 |
[logger_root]
|
161 |
level = INFO
|
161 |
level = INFO
|
162 |
handlers = console
|
162 |
handlers = console, rtstats
|
163 |
|
163 |
|
164 |
[logger_pyforge]
|
164 |
[logger_pyforge]
|
165 |
level = DEBUG
|
165 |
level = DEBUG
|
166 |
handlers =
|
166 |
handlers =
|
167 |
qualname = pyforge
|
167 |
qualname = pyforge
|
|
... |
|
... |
180 |
class = StreamHandler
|
180 |
class = StreamHandler
|
181 |
args = (sys.stderr,)
|
181 |
args = (sys.stderr,)
|
182 |
level = NOTSET
|
182 |
level = NOTSET
|
183 |
formatter = generic
|
183 |
formatter = generic
|
184 |
|
184 |
|
|
|
185 |
[handler_rtstats]
|
|
|
186 |
class = pyforge.ext.sfx.lib.loggers.RTStatsHandler
|
|
|
187 |
args = ('rtstats.log', 'allura', 1)
|
|
|
188 |
level = NOTSET
|
|
|
189 |
formatter = rtstats
|
|
|
190 |
|
185 |
# If you create additional formatters, add them as a key to [formatters]
|
191 |
# If you create additional formatters, add them as a key to [formatters]
|
186 |
[formatter_generic]
|
192 |
[formatter_generic]
|
187 |
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
|
193 |
format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
|
188 |
datefmt = %H:%M:%S
|
194 |
datefmt = %H:%M:%S
|
|
|
195 |
|
|
|
196 |
[formatter_rtstats]
|
|
|
197 |
format = %(asctime)s %(created)d %(kwpairs)s
|
|
|
198 |
datefmt = %d/%b/%Y:%H:%M:%S UTC
|