source: qesdi/wms_ddc_vis/trunk/development.ini @ 5734

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/qesdi/wms_ddc_vis/trunk/development.ini@5734
Revision 5734, 3.5 KB checked in by pnorton, 10 years ago (diff)

Added some wms request logging that writes the parameeters and the header information to a file. Hopefully this will enable statistics to be generated on the data usage.

Also made some changes to the demo page so that it works in IE.

Line 
1#
2# OGCServices - 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
8# Uncomment and replace with the address which should receive any error reports
9#email_to = you@yourdomain.com
10smtp_server = localhost
11error_email_from = paste@localhost
12
13[server:main]
14use = egg:Paste#http
15#host = 127.0.0.1
16host = 0.0.0.0
17port = 5000
18use_threadpool = True
19threadpool_spawn_if_under = 1
20threadpool_workers = 1
21
22[app:main]
23use = egg:wms_ddc_vis
24full_stack = true
25cache_dir = %(here)s/data
26
27##############################################################################
28# COWS configuration
29#
30
31# Set to pylons if you want WMS calls to be handled by the pylons debugger.
32# Else WMS exceptions will be raised
33cows.exception_type = pylons
34
35# Point to the service-level OWS configuration file
36cows.capabilities_config = %(here)s/capabilities.cfg
37cows.csml.tmpdir = /data/pnorton/wms_tmp
38cows.csml.csmlstore = /data/pnorton/csml
39cows.csml.colourmap = jet
40cows.csml.publish_dir = %(here)s/publish
41cows.csml.wfsconfig = %(here)s/wfs.cfg
42cows.csml.legendfont = /usr/share/fonts/truetype/luxisr.ttf
43
44#modis file options
45cows.modis.modis_variable = landtype
46cows.modis.modis_file = /data/pnorton/qesdi_data/modis/MCD12Q1_10min/MODIS_classification_IGBP.nc
47
48
49#switches the demo to the wmsviz page
50cows.cowsclienturl = http://localhost:5005/wmsviz?
51##############################################################################
52
53beaker.session.key = ogcservices
54beaker.session.secret = somesecret
55
56
57# If you'd like to fine-tune the individual locations of the cache data dirs
58# for the Cache data, or the Session saves, un-comment the desired settings
59# here:
60beaker.cache.data_dir = /data/pnorton/beaker_cache
61beaker.session.data_dir = /data/pnorton/beaker_sessions
62
63# WARNING: *THE LINE BELOW MUST BE UNCOMMENTED ON A PRODUCTION ENVIRONMENT*
64# Debug mode will enable the interactive debugging tool, allowing ANYONE to
65# execute malicious code after an exception is raised.
66#set debug = false
67
68# Logging configuration
69[loggers]
70keys = root,paste,pylons,routes,cows,geoplot,cows_wms,cows_ows,cows_imps,cows_wcs,wms_request
71
72[handlers]
73keys = console, file
74
75[formatters]
76keys = generic, logfile
77
78[logger_root]
79level = DEBUG
80handlers = console
81
82[logger_paste]
83level = INFO
84handlers = console
85propagate = 0
86qualname = paste
87
88[logger_pylons]
89level = INFO
90handlers = console
91propagate = 0
92qualname = pylons
93
94[logger_routes]
95level = INFO
96handlers = console
97propagate = 0
98qualname = routes
99
100[logger_cows_imps]
101level = DEBUG
102handlers = console
103propagate = 0
104qualname = cows.service.imps
105
106[logger_cows_ows]
107level = INFO
108handlers = console
109propagate = 0
110qualname = cows.pylons.ows_controller
111
112[logger_cows_wms]
113level = DEBUG
114handlers = console
115propagate = 0
116qualname = cows.pylons.wms_controller
117
118[logger_cows_wcs]
119level = DEBUG
120handlers = console
121propagate = 0
122qualname = cows.pylons.wcs_controller
123
124[logger_cows]
125level = INFO
126handlers = console
127propagate = 0
128qualname = cows
129
130[logger_geoplot]
131level = DEBUG
132handlers = console
133propagate = 0
134qualname = geoplot
135
136[logger_wms_request]
137level = DEBUG
138handlers = file
139propagate = 0
140qualname = wms_request
141
142[handler_console]
143class = StreamHandler
144args = (sys.stderr,)
145level = NOTSET
146formatter = generic
147
148[handler_file]
149class = FileHandler
150args = ('./log.txt',)
151level = NOTSET
152formatter = logfile
153
154[formatter_generic]
155format = %(asctime)s,%(msecs)03d %(levelname)-5.5s [%(name)s] %(message)s
156datefmt = %H:%M:%S
157
158[formatter_logfile]
159format = %(asctime)s %(filename)s: %(message)s
160
Note: See TracBrowser for help on using the repository browser.