1. Oliver Tonnhofer
  2. mapproxy
  3. Issues
Issue #26 resolved

log.ini reference in conf.py

Greg Corradini
created an issue

After creating conf.py wsgi script: {{{

!python

mapproxy-util create -t wsgi-app -f mapproxy.yaml config.py }}}

I noticed the commented out lines: {{{

!python

from logging.config import fileConfig

import os.path

fileConfig('./log.ini', {'here': os.path.dirname(file)})

}}}

Is log.ini path supposed to be set by user here? Or is log.ini supposed to be created along with conf.py in the mapproxy working directory with the wsgi script command at the top?

It would be nice if something was explicitly stated in the conf.py in regards to log.ini.

Thanks

Comments (2)

  1. Greg Corradini reporter

    [UPDATE]

    I still think it would be useful to have some comments in the conf.py file regarding how to create the log.ini file with the command:

    mapproxy-util create -t log-ini log.ini
    

    Though i was able to find the documentation on the logging that answered my initial questions on what the user is supposed to do in the conf.py file to setup the log.ini path at this link:

    http://mapproxy.org/docs/latest/deployment.html#logging

    Thanks

  2. Log in to comment