source: TI05-delivery/ows_framework/trunk/ows_server/development.ini @ 4457

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/development.ini
Revision 4457, 3.3 KB checked in by cbyrom, 11 years ago (diff)

Add debug logging options to development.ini

Line 
1#
2# ows_server - Pylons development environment configuration
3#
4# The %(here)s variable will be replaced with the parent directory of this file
5#
6[DEFAULT]
7debug = true
8email_to = you@yourdomain.com
9smtp_server = localhost
10error_email_from = paste@localhost
11
12[server:main]
13use = egg:Paste#http
14host = 0.0.0.0
15port = 8080
16
17[pipeline:main]
18pipeline = logger main_app
19
20[filter:logger]
21use = egg:Paste#translogger
22
23[app:main_app]
24use = egg:ows_server
25cache_dir = %(here)s/data
26session.key = ows_server
27session.secret = somesecret
28csml_dir = /research/home/spascoe/host/saturn/data/ddc_data/obs
29tmp_dir = %(here)s/data/tmp
30#used for wcs "store":
31publish_dir=%(here)s/ows_server/private/filestore 
32ows_common_config = %(here)s/eg_ows_capabilities.xml
33configfile = %(here)s/ndgDiscovery.config
34
35#the password file needs to be outside the egg:
36#passwordFile =  %(here)s/passwords.txt 
37#but it's gone back to ndgDiscoveryq
38
39# If you'd like to fine-tune the individual locations of the cache data dirs
40# for Myghty, the Cache data, or the Session saves, un-comment the desired
41# settings here:
42#myghty_data_dir = %(here)s/data/templates
43#cache_data_dir = %(here)s/data/cache
44#session_data_dir = %(here)s/data/sessions
45
46# Specify the database for SQLAlchemy to use via
47# pylons.database.session_context.
48# %(here) may include a ':' character on Windows environments; this can
49# invalidate the URI when specifying a SQLite db via path name
50#sqlalchemy.dburi = sqlite:///%(here)s/somedb.db
51
52# Specify the database for SQLObject to use via pylons.database.PackageHub.
53#sqlobject.dburi = sqlite://%(here)s/somedb.db
54
55# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
56# Debug mode will enable the interactive debugging tool, allowing ANYONE to
57# execute malicious code after an exception is raised.
58#set debug = false
59
60# AuthKit Set-up
61authkit.setup.method=openid, cookie
62authkit.cookie.secret=secret encryption string
63authkit.cookie.signoutpath = /logout
64authkit.openid.path.signedin=/
65authkit.openid.store.type=file
66authkit.openid.store.config=%(here)s/data/openid
67authkit.openid.session.key = authkit_openid
68authkit.openid.session.secret = random string
69
70authkit.openid.baseurl = http://localhost
71
72# Template for signin
73authkit.openid.template.obj = ndg.security.server.sso.sso.lib.openid_util:make_template
74
75# Handler for parsing OpenID and creating a session from it
76authkit.openid.urltouser = ndg.security.server.sso.sso.lib.openid_util:url2user
77
78# Logging configuration
79# NB, swap values in logger_root if you want more debug logging
80[loggers]
81keys = root, ows_server, ndg
82
83[handlers]
84keys = console, debug_console
85
86[formatters]
87keys = generic, debug
88
89[logger_root]
90level = INFO
91handlers = console
92#level = DEBUG
93#handlers = debug_console
94
95[logger_ows_server]
96level = DEBUG
97handlers =
98qualname = ows_server
99
100[logger_ndg]
101level = DEBUG
102handlers =
103qualname = ndg
104
105[logger_authkit]
106level = DEBUG
107handlers =
108qualname = authkit
109
110
111[handler_console]
112class = StreamHandler
113args = (sys.stderr,)
114#level = NOTSET
115level = DEBUG
116formatter = generic
117
118[handler_debug_console]
119class = StreamHandler
120args = (sys.stderr,)
121level = DEBUG
122formatter = debug
123
124[formatter_generic]
125format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
126datefmt = %H:%M:%S
127
128[formatter_debug]
129format = %(asctime)s.%(msecs)03d %(filename)s:%(lineno)d %(levelname)s %(message)s
130datefmt = %H:%M:%S
Note: See TracBrowser for help on using the repository browser.