Skip to main content

Autologging is a module containing decorators and a metaclass used to make logging classes easier.

Project description

Autologging provides two decorators and a metaclass factory:

@logged

Decorate a class (or function) to create a __logger member. The logger is automatically named to match the dotted-name of the class or module. Alternatively, provide a specific logger using @logged(logger).

@traced

Decorate a module-level function to provide call/return tracing. The log record attributes pathname, filename, lineno, module, and funcName work as expected (i.e. they refer to the original function, NOT the proxy function returned by the decorator).

TracedMethods

Create a metaclass that adds automatic tracing to specified class methods (just like @traced does for module-level functions). The log record attributes pathname, filename, lineno, module, and funcName work as expected (i.e. they refer to the original class method, NOT the proxy method installed by the metaclass).

Additionally, the autologging module defines and registers a custom log level named “TRACE” (level 1) so that tracing messages can be toggled on/off independently of DEBUG-level logging.

Project details


Download files

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

Source Distributions

Autologging-0.3.0.zip (147.7 kB view details)

Uploaded Source

Autologging-0.3.0.tar.gz (113.4 kB view details)

Uploaded Source

Built Distributions

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

Autologging-0.3.0-py3.4.egg (12.5 kB view details)

Uploaded Egg

Autologging-0.3.0-py3.3.egg (12.5 kB view details)

Uploaded Egg

Autologging-0.3.0-py3.2.egg (12.4 kB view details)

Uploaded Egg

Autologging-0.3.0-py2.7.egg (12.3 kB view details)

Uploaded Egg

File details

Details for the file Autologging-0.3.0.zip.

File metadata

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

File hashes

Hashes for Autologging-0.3.0.zip
Algorithm Hash digest
SHA256 1e793e386c2bbf35dc66272292ddcd4ca608fe95cd81156b38f6c0a3c0b86e81
MD5 1dd65dc017168d8cff6c376bcd7c92bf
BLAKE2b-256 fc02e1f6f689183f7c8d9f1ee9f4384f991474d833101cd09887fffedfd478f5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for Autologging-0.3.0.tar.gz
Algorithm Hash digest
SHA256 da5f7c7f8966ba9bd6e294e30b08e64dc02445c9a308cd57d0773203907bc995
MD5 9a313644fa3f5448dd9f979178a39cc5
BLAKE2b-256 0965ba619abd3893b4b11e27e0d153fdc60d7c7aa4b1c5adcecdb138a7ab6467

See more details on using hashes here.

File details

Details for the file Autologging-0.3.0-py3.4.egg.

File metadata

File hashes

Hashes for Autologging-0.3.0-py3.4.egg
Algorithm Hash digest
SHA256 ab9a61fd193adbbfe00eb3078fa2665d927cb30f62fe1e4948fc6332ef669c71
MD5 d98514220e1a4e1411685a3a53262f20
BLAKE2b-256 b00046fc5cba655e124f1af12018c010eb92c7677fd4485411c0b63da64a3f16

See more details on using hashes here.

File details

Details for the file Autologging-0.3.0-py3.3.egg.

File metadata

File hashes

Hashes for Autologging-0.3.0-py3.3.egg
Algorithm Hash digest
SHA256 956b968e98933b2a73e1d5c5ff0a521968c15261819545ef7d68e83099c9ae32
MD5 1d1a19fa2a73981cd29640277e6aed72
BLAKE2b-256 de716d9fd845fbcd9637b9f043472368a63dd341f987801023c8b570484c7441

See more details on using hashes here.

File details

Details for the file Autologging-0.3.0-py3.2.egg.

File metadata

File hashes

Hashes for Autologging-0.3.0-py3.2.egg
Algorithm Hash digest
SHA256 e736d411d3a02cd74eba5e920e04cb0a2cb10b87dc8aef537b27baf34246496b
MD5 0bb9b958818da402b1a45c394d342698
BLAKE2b-256 bff0e183f0cd1b31dbda06de7f88a146b93484635c915bb7e7e86454fdde8fff

See more details on using hashes here.

File details

Details for the file Autologging-0.3.0-py2.7.egg.

File metadata

File hashes

Hashes for Autologging-0.3.0-py2.7.egg
Algorithm Hash digest
SHA256 961f75fb2e91d063d820ab5866658682baa15abcc1ce309d4adf0ba7d86ef723
MD5 491ec3de759cbad7425af159cb2e80f8
BLAKE2b-256 dc3ffeb8d6a68c39e1835e15f572284863b31e1e71d3fce79db478afc9a75db3

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