From: Michael Trier Date: Sun, 28 Feb 2010 17:05:20 +0000 (+0000) Subject: Corrected docs on create_engine to link to DBEngine Logging docs. Fixes #1721. X-Git-Tag: rel_0_6beta2~102 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3328792ebcc6af92c9c4e486e755a43300f6a279;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Corrected docs on create_engine to link to DBEngine Logging docs. Fixes #1721. --- diff --git a/doc/build/dbengine.rst b/doc/build/dbengine.rst index 2e24c19563..49ccfd3be5 100644 --- a/doc/build/dbengine.rst +++ b/doc/build/dbengine.rst @@ -429,6 +429,8 @@ Calling ``close()`` on the "contextual" connection does not release the connecti So remember - if you're not sure if you need to use ``strategy="threadlocal"`` or not, the answer is **no** ! It's driven by a specific programming pattern that is generally not the norm. +.. _dbengine_logging: + Configuring Logging ==================== diff --git a/lib/sqlalchemy/engine/__init__.py b/lib/sqlalchemy/engine/__init__.py index 137218c2c0..8911485cbb 100644 --- a/lib/sqlalchemy/engine/__init__.py +++ b/lib/sqlalchemy/engine/__init__.py @@ -150,14 +150,13 @@ def create_engine(*args, **kwargs): ``Engine`` can be modified at any time to turn logging on and off. If set to the string ``"debug"``, result rows will be printed to the standard output as well. This flag ultimately - controls a Python logger; see `dbengine_logging` at the end of - this chapter for information on how to configure logging - directly. + controls a Python logger; see :ref:`dbengine_logging` for + information on how to configure logging directly. :param echo_pool=False: if True, the connection pool will log all checkouts/checkins to the logging stream, which defaults to sys.stdout. This flag ultimately controls a Python logger; see - `dbengine_logging` for information on how to configure logging + :ref:`dbengine_logging` for information on how to configure logging directly. :param encoding='utf-8': the encoding to use for all Unicode