source: TI12-security/trunk/NDGSecurity/python/Tests/paste_logging_test/app.ini @ 7080

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]
19use = egg:Paste#http
20host = 0.0.0.0
21port = 7080
22
23[pipeline:main]
24pipeline = TestApp
25
26[app:TestApp]
27paste.app_factory = app:TestLoggingApp.app_factory
28
29# Logging configuration
30[loggers]
31keys = root
32
33[handlers]
34keys = console, logfile
35
36[formatters]
37keys = generic
38
39[logger_root]
40level = NOTSET
41handlers = console, logfile
42
43[handler_console]
44class = StreamHandler
45args = (sys.stderr,)
46level = NOTSET
47formatter = generic
48
49[handler_logfile]
50class = handlers.RotatingFileHandler
51level=NOTSET
52formatter=generic
53args=('app.log', 'a', 100000, 10)
54
55[formatter_generic]
56format = %(asctime)s.%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
57datefmt = %Y/%m/%d %H:%M:%S
58
Note: See TracBrowser for help on using the repository browser.