| Age | Commit message (Collapse) | Author |
|
|
|
This allows one to set up a logging configuration that is parameterized
based on variables specified on the command-line.
e.g.: the application .ini file could have:
```ini
[logger_root]
level = %(LOGGING_LOGGER_ROOT_LEVEL)s
handlers = console
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = %(LOGGING_HANDLER_CONSOLE_LEVEL)s
formatter = generic
```
This app could be launched with:
```
pserve development.ini LOGGING_LOGGER_ROOT_LEVEL=DEBUG LOGGING_HANDLER_CONSOLE_LEVEL=DEBUG
```
|
|
get_app, that can be used to get the settings when interpolation is used in the config file.
|
|
|
|
This function sets up Python logging according to the logging configuration
in a PasteDeploy ini file.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
obtains a WSGI application from a config file given a config file
name and a section name. See the ``repoze.bfg.paster`` API docs for
more information.
- Add a new module named ``scripting``. It contains a ``get_root``
API function, which, provided a Router instance, returns a traversal
root object and a "closer". See the ``repoze.bfg.scripting`` API
docs for more info.
|