Skip to main content

Autologging makes logging and tracing Python classes easy.

Project description

Autologging eliminates boilerplate logging setup code and tracing code, and provides a means to separate application logging from program flow and data tracing.

Python modules that make use of Autologging are cleaner, leaner, and more resilient to changes that would otherwise require updating tracing statements.

Autologging allows for tracing to be configured (and controlled) independently from application logging. Toggle tracing on/off, write trace log records to a separate log, and use different formatting for trace log entries - all via standard Python logging facilities, and without affecting your application logging.

Autologging exposes two decorators and a custom log level:

@logged Decorate a class to create a __log member. The logger is named by default to match the dotted-name of the containing class. A function may also be decorated, creating a _log attribute on the function object whose default name matches the containing module. A specifically-named logger may also be passed to the decorator (i.e. @logged(my_logger)).

@traced Decorate a class to provide automatic method call/return tracing. By default, all class, static, and instance methods are traced (excluding “__special__” methods, with the exception of __init__). As with the logged decorator, the default name of the tracing logger matches the dotted-name of the containing class and may be overridden by passing a specifically-named logger to the decorator. Additionally, this decorator accepts multiple string arguments that explicitly name the methods to be traced (and may even name “__special__” methods). Module-level functions may also be traced using this decorator.

TRACE The autologging.TRACE (level 1) log level is registered with the Python logging module when Autologging is imported so that tracing can be configured and controlled independently of application logging.

Download files

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

Source Distributions

Autologging-1.1.0.zip (339.8 kB view details)

Uploaded Source

Autologging-1.1.0.tar.gz (271.1 kB view details)

Uploaded Source

Built Distributions

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

Autologging-1.1.0.win32.msi (122.9 kB view details)

Uploaded Source

Autologging-1.1.0.win32.exe (143.0 kB view details)

Uploaded Source

Autologging-1.1.0-py2.py3-none-any.whl (12.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file Autologging-1.1.0.zip.

File metadata

  • Download URL: Autologging-1.1.0.zip
  • Upload date:
  • Size: 339.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Autologging-1.1.0.zip
Algorithm Hash digest
SHA256 49cfb02c97638564915d01bc96b4dacfeedf5b719cf229c3b269892e9fc32c37
MD5 6598c060dae41bf25a455f81112b791f
BLAKE2b-256 71b0896c372d65b13a0fcbc0e7983dfb78097e248b159305c692504ac3f27f2b

See more details on using hashes here.

File details

Details for the file Autologging-1.1.0.tar.gz.

File metadata

  • Download URL: Autologging-1.1.0.tar.gz
  • Upload date:
  • Size: 271.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Autologging-1.1.0.tar.gz
Algorithm Hash digest
SHA256 4c0325745f1d9873712a3f71e37ef78606af978a9f97cb4cef72f55dd5f3d192
MD5 eeb03a4c2ad2244cbaa7d2bd1e6b2962
BLAKE2b-256 71c545d42127a22d465df0bcccaf0549c133b3b1e95db226eed4bbcb5c455958

See more details on using hashes here.

File details

Details for the file Autologging-1.1.0.win32.msi.

File metadata

  • Download URL: Autologging-1.1.0.win32.msi
  • Upload date:
  • Size: 122.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Autologging-1.1.0.win32.msi
Algorithm Hash digest
SHA256 2d57cf5b4ea9db643e7b94419da04d00ce0dc07a9419a3b309a9c5dd63730245
MD5 2b70b8c5bdfeefd541a66e3484a96ad2
BLAKE2b-256 f7b3a86f67697004656ecb553bf7552d1e1938801ad9d6d25cb4b94b073aa660

See more details on using hashes here.

File details

Details for the file Autologging-1.1.0.win32.exe.

File metadata

  • Download URL: Autologging-1.1.0.win32.exe
  • Upload date:
  • Size: 143.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Autologging-1.1.0.win32.exe
Algorithm Hash digest
SHA256 92fe61d3abd14dc780bfd80ecf243ba7428640a6f7183649d67c4e668f097e52
MD5 c26f2a63f973c3f63ce629c272d50634
BLAKE2b-256 8543ef18b545ff0aad897c52ca5f8ace002f032792f6b87c842c84ae96981b5c

See more details on using hashes here.

File details

Details for the file Autologging-1.1.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for Autologging-1.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 29b27dbfda8bbeef307b1f168eac7c4239a4dc31c32f4c7f59573e9867ce927a
MD5 cb799926a02307dd901162c753a7f7f8
BLAKE2b-256 28d7130333aafce6116cf811bd9eda83c90f4c0576ab660e7dd795c7ffeab42d

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