diff options
| author | Michael Trier <mtrier@gmail.com> | 2010-02-28 17:05:20 +0000 |
|---|---|---|
| committer | Michael Trier <mtrier@gmail.com> | 2010-02-28 17:05:20 +0000 |
| commit | 3328792ebcc6af92c9c4e486e755a43300f6a279 (patch) | |
| tree | 75cc4debef90f957e039d85c5d1dd5b07a4d161e | |
| parent | fe99d56657a59d98cf5fabebb4b3bb92bf26e304 (diff) | |
| download | sqlalchemy-3328792ebcc6af92c9c4e486e755a43300f6a279.tar.gz | |
Corrected docs on create_engine to link to DBEngine Logging docs. Fixes #1721.
| -rw-r--r-- | doc/build/dbengine.rst | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/engine/__init__.py | 7 |
2 files changed, 5 insertions, 4 deletions
diff --git a/doc/build/dbengine.rst b/doc/build/dbengine.rst index 2e24c1956..49ccfd3be 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 137218c2c..8911485cb 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 |
