Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/Tests/paste_logging_test/app.ini@7080
Revision 7080,
951 bytes
checked in by pjkersha, 9 years ago
(diff) |
|
-
Property svn:keywords set to
Id
|
Line | |
---|
1 | # |
---|
2 | # Test logging with Paste |
---|
3 | # |
---|
4 | # NERC DataGrid |
---|
5 | # |
---|
6 | # Author: P J Kershaw |
---|
7 | # |
---|
8 | # Date: 26/10/09 |
---|
9 | # |
---|
10 | # Copyright: STFC 2009 |
---|
11 | # |
---|
12 | # Licence: BSD - See top-level LICENCE file for licence details |
---|
13 | # |
---|
14 | # The %(here)s variable will be replaced with the parent directory of this file |
---|
15 | # |
---|
16 | [DEFAULT] |
---|
17 | |
---|
18 | [server:main] |
---|
19 | use = egg:Paste#http |
---|
20 | host = 0.0.0.0 |
---|
21 | port = 7080 |
---|
22 | |
---|
23 | [pipeline:main] |
---|
24 | pipeline = TestApp |
---|
25 | |
---|
26 | [app:TestApp] |
---|
27 | paste.app_factory = app:TestLoggingApp.app_factory |
---|
28 | |
---|
29 | # Logging configuration |
---|
30 | [loggers] |
---|
31 | keys = root |
---|
32 | |
---|
33 | [handlers] |
---|
34 | keys = console, logfile |
---|
35 | |
---|
36 | [formatters] |
---|
37 | keys = generic |
---|
38 | |
---|
39 | [logger_root] |
---|
40 | level = NOTSET |
---|
41 | handlers = console, logfile |
---|
42 | |
---|
43 | [handler_console] |
---|
44 | class = StreamHandler |
---|
45 | args = (sys.stderr,) |
---|
46 | level = NOTSET |
---|
47 | formatter = generic |
---|
48 | |
---|
49 | [handler_logfile] |
---|
50 | class = handlers.RotatingFileHandler |
---|
51 | level=NOTSET |
---|
52 | formatter=generic |
---|
53 | args=('app.log', 'a', 100000, 10) |
---|
54 | |
---|
55 | [formatter_generic] |
---|
56 | format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s |
---|
57 | datefmt = %Y/%m/%d %H:%M:%S |
---|
58 | |
---|
Note: See
TracBrowser
for help on using the repository browser.