diff options
| author | Marc Abramowitz <marc@marc-abramowitz.com> | 2016-03-07 08:20:39 -0800 |
|---|---|---|
| committer | Marc Abramowitz <marc@marc-abramowitz.com> | 2016-04-06 11:03:28 -0700 |
| commit | 1514ea003dfe39fa79a0ec07bbbc14f239cb4eb2 (patch) | |
| tree | d9f257b9edb5699b1eb3886f71797a11217d555e /docs/quick_tutorial/authorization.rst | |
| parent | a9cdf5be43d9dd915f8611f540e2f839c2e8d6a0 (diff) | |
| download | pyramid-1514ea003dfe39fa79a0ec07bbbc14f239cb4eb2.tar.gz pyramid-1514ea003dfe39fa79a0ec07bbbc14f239cb4eb2.tar.bz2 pyramid-1514ea003dfe39fa79a0ec07bbbc14f239cb4eb2.zip | |
Pass vars to logging.config.fileConfig
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
```
Diffstat (limited to 'docs/quick_tutorial/authorization.rst')
0 files changed, 0 insertions, 0 deletions
