summaryrefslogtreecommitdiff
path: root/docs/api/paster.rst
diff options
context:
space:
mode:
authorMarc Abramowitz <marc@marc-abramowitz.com>2016-03-07 08:20:39 -0800
committerMarc Abramowitz <marc@marc-abramowitz.com>2016-04-06 11:03:28 -0700
commit1514ea003dfe39fa79a0ec07bbbc14f239cb4eb2 (patch)
treed9f257b9edb5699b1eb3886f71797a11217d555e /docs/api/paster.rst
parenta9cdf5be43d9dd915f8611f540e2f839c2e8d6a0 (diff)
downloadpyramid-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/api/paster.rst')
-rw-r--r--docs/api/paster.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/api/paster.rst b/docs/api/paster.rst
index edc3738fc..27bc81a1f 100644
--- a/docs/api/paster.rst
+++ b/docs/api/paster.rst
@@ -11,4 +11,4 @@
.. autofunction:: get_appsettings(config_uri, name=None, options=None)
- .. autofunction:: setup_logging(config_uri)
+ .. autofunction:: setup_logging(config_uri, global_conf=None)