]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
update logging_name doc
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Jan 2025 13:14:14 +0000 (08:14 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Jan 2025 13:14:38 +0000 (08:14 -0500)
engine logging has not used hex-strings in a very long time

Change-Id: I77131e3eb2f72129fde1d9ab6dd4b4e40bc313c6
(cherry picked from commit 214088c42ad61794e315174c41ee92a3c408ae6c)

doc/build/core/engines.rst

index 108a939a9ea572ea29f5f6182aaa80fe7d37e4d3..8ac57cdaaf3f4242fa275a64ddb93de604afd61a 100644 (file)
@@ -588,13 +588,16 @@ getting duplicate log lines.
 Setting the Logging Name
 -------------------------
 
-The logger name of instance such as an :class:`~sqlalchemy.engine.Engine` or
-:class:`~sqlalchemy.pool.Pool` defaults to using a truncated hex identifier
-string. To set this to a specific name, use the
+The logger name for :class:`~sqlalchemy.engine.Engine` or
+:class:`~sqlalchemy.pool.Pool` is set to be the module-qualified class name of the
+object.  This name can be further qualified with an additional name
+using the
 :paramref:`_sa.create_engine.logging_name` and
-:paramref:`_sa.create_engine.pool_logging_name`  with
-:func:`sqlalchemy.create_engine`; the name will be appended to the logging name
-``sqlalchemy.engine.Engine``::
+:paramref:`_sa.create_engine.pool_logging_name` parameters with
+:func:`sqlalchemy.create_engine`; the name will be appended to existing
+class-qualified logging name.   This use is recommended for applications that
+make use of multiple global :class:`.Engine` instances simultaenously, so
+that they may be distinguished in logging::
 
     >>> import logging
     >>> from sqlalchemy import create_engine