module documentation

Logging control and utilities. Control of logging for SA can be performed from the regular python logging module. The regular dotted module namespace is used, starting at 'sqlalchemy'. For class-level logging, the class name is appended. The "echo" keyword parameter, available on SQLA :class:`_engine.Engine` and :class:`_pool.Pool` objects, corresponds to a logger specific to that instance only.

Class echo_property Undocumented
Class Identified Undocumented
Class InstanceLogger A logger adapter (wrapper) for :class:`.Identified` subclasses.
Function class_logger Undocumented
Function instance_logger create a logger for an instance that implements :class:`.Identified`.
Constant STACKLEVEL Undocumented
Constant STACKLEVEL_OFFSET Undocumented
Variable rootlogger Undocumented
Function _add_default_handler Undocumented
Function _qual_logger_name_for_cls Undocumented
Type Variable _IT Undocumented
Type Alias _EchoFlagType Undocumented
Type Alias _IdentifiedLoggerType Undocumented
Variable _logged_classes Undocumented
def class_logger(cls: Type[_IT]) -> Type[_IT]: (source)

Undocumented

def instance_logger(instance: Identified, echoflag: _EchoFlagType = None): (source)

create a logger for an instance that implements :class:`.Identified`.

STACKLEVEL: bool = (source)

Undocumented

Value
True
STACKLEVEL_OFFSET = (source)

Undocumented

Value
(2 if py311 else 1)
rootlogger = (source)

Undocumented

def _add_default_handler(logger: logging.Logger): (source)

Undocumented

def _qual_logger_name_for_cls(cls: Type[Identified]) -> str: (source)

Undocumented

Undocumented

Value
TypeVar('_IT',
        bound='Identified')
_EchoFlagType = (source)

Undocumented

Value
Union[None, bool, Literal['debug']]
_IdentifiedLoggerType = (source)

Undocumented

Value
Union[logging.Logger, 'InstanceLogger']
_logged_classes: Set[Type[Identified]] = (source)

Undocumented