Skip to main content

Logging library

Project description

sqlalchemy-logger

A small library that provides sqlalchemy session logging.

Installation

pip install sqlalchemy-logger

Get started

How to log sqlalchemy session:

from sqlalchemy-logger import Logger

#create Logger instance (where app is your app = Flask(__name__))
logger = Logger(app)

#call the logger before flush
logger.listen_before_flush()

#call the logger after flush
logger.listen_after_flush()

#call the logger after rollback
logger.listen_after_rollback()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sqlalchemy-logger-0.1.2.tar.gz (2.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

sqlalchemy_logger-0.1.2-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file sqlalchemy-logger-0.1.2.tar.gz.

File metadata

  • Download URL: sqlalchemy-logger-0.1.2.tar.gz
  • Upload date:
  • Size: 2.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for sqlalchemy-logger-0.1.2.tar.gz
Algorithm Hash digest
SHA256 68d4bd94ec49c7696f247965c0c9dfb6ef943ef2228c3cf18f6aefd291d05d8d
MD5 ba952d3050dc62e96eb054127bba0561
BLAKE2b-256 d99da12716916c98ba17e8f82a041afe7d5bdd0f47cb21001900b275b043307b

See more details on using hashes here.

File details

Details for the file sqlalchemy_logger-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: sqlalchemy_logger-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 2.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.9.6

File hashes

Hashes for sqlalchemy_logger-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 72c285442784beffc7b2d0e0f89acf20e64bb7dc24bac72d35d144aa5b86c69d
MD5 1c25a8be1036fffa07d17bc02aedf3cf
BLAKE2b-256 5068df3c62b41df4884f9141d889f9c0bda3f097256ca824553d47d042bec40c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page