ReloadWSGI implements this hidden paste feature with this code:
def configure_logging(uri):
"""Configure logging from the PasteDeploy .ini found at uri"""
config_file = uri
if config_file.startswith('config:'):
config_file = config_file.split(':', 1)[1]
parser = ConfigParser.ConfigParser()
parser.read([config_file])
if parser.has_section('loggers'):
logging.config.fileConfig(config_file)
--
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en.