Skip to main content

Log with 20/20 vision

Project description

Dynamic and adaptive logging AFTER the fact

Classic logging expects perfect foresight, but everyone knows only hindsight is 20/20!

Usage

Install via pip, then:

>>> def hello(a=1):
>>>    a += 1
>>>    b = 2
>>>    print(a + b)
>>>
>>> import retrospect
>>> r = retrospect.retrospect(hello)
>>>
>>> r.trace_lines().fun()
{'a': 1}
{'a': 2}
{'a': 2, 'b': 2}
4
{'a': 2, 'b': 2}
>>> r.trace_none().fun()
4

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

retrospect-0.1.1.tar.gz (7.9 kB view details)

Uploaded Source

File details

Details for the file retrospect-0.1.1.tar.gz.

File metadata

  • Download URL: retrospect-0.1.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for retrospect-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4bd4f070260127bcfa3f41443822ed4e980a524191ce582530aee6da3b6f9dc9
MD5 4e0df06ef0fa0cfcd82a8c17a884f898
BLAKE2b-256 bd67e48864da8e3861078d6891bd6b3b7f710028d5c1c28a2a3d5d7393bed0d4

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