Home
Softono
eliot

eliot

Open source Apache-2.0 Python
1.2K
Stars
72
Forks
119
Issues
35
Watchers
1 month
Last Commit

About eliot

Eliot is a Python logging system that outputs causal chains of actions, telling you not just what happened in your application but why. Unlike standard logging that produces isolated factoids, Eliot lets actions spawn other actions that eventually succeed or fail, creating a narrative trace of your software's behavior. This makes it easy to pinpoint performance bottlenecks, understand code paths, and diagnose the root causes of errors. Eliot supports logging within a single process and causal tracing across distributed systems. It includes built-in support for scientific computing with NumPy and Dask, as well as integration with Asyncio, Trio coroutines, and the Twisted networking framework. Eliot only generates logs; tools like Logstash and ElasticSearch can be used to aggregate and store them across multiple processes and machines. Logs can also be linked to error tracking systems like Sentry using task UUIDs for quick navigation from errors to detailed operation traces. Eliot supports Python 3.10 through 3

Platforms

Web Self-hosted

Languages

Python

Eliot: Logging that tells you why it happened

Python's built-in logging and other similar systems output a stream of factoids: they're interesting, but you can't really tell what's going on.

  • Why is your application slow?
  • What caused this code path to be chosen?
  • Why did this error happen?

Standard logging can't answer these questions.

But with a better model you could understand what and why things happened in your application. You could pinpoint performance bottlenecks, you could understand what happened when, who called what.

That is what Eliot does. eliot is a Python logging system that outputs causal chains of actions: actions can spawn other actions, and eventually they either succeed or fail. The resulting logs tell you the story of what your software did: what happened, and what caused it.

Eliot supports a range of use cases and 3rd party libraries:

  • Logging within a single process.
  • Causal tracing across a distributed system.
  • Scientific computing, with built-in support for NumPy and Dask <https://eliot.readthedocs.io/en/stable/scientific-computing.html>_.
  • Asyncio and Trio coroutines <https://eliot.readthedocs.io/en/stable/generating/asyncio.html> and the Twisted networking framework <https://eliot.readthedocs.io/en/stable/generating/twisted.html>.

Eliot is only used to generate your logs; you will might need tools like Logstash and ElasticSearch to aggregate and store logs if you are using multiple processes across multiple machines.

Eliot supports Python 3.10-3.14, as well as PyPy 3.11. It is maintained by Itamar Turner-Trauring, and released under the Apache 2.0 License.

  • Read the documentation <https://eliot.readthedocs.io>_.
  • Download from PyPI or conda-forge <https://anaconda.org/conda-forge/eliot>.
  • Need help or have any questions? File an issue <https://github.com/itamarst/eliot/issues/new>_ on GitHub.
  • Commercial support is available from Python⇒Speed <https://pythonspeed.com/services/#eliot>_.

Testimonials

"Eliot has made tracking down causes of failure (in complex external integrations and internal uses) tremendously easier. Our errors are logged to Sentry with the Eliot task UUID. That means we can go from a Sentry notification to a high-level trace of operations—with important metadata at each operation—in a few seconds. We immediately know which user did what in which part of the system."

—Jonathan Jacobs

.. _Github: https://github.com/itamarst/eliot .. _PyPI: https://pypi.python.org/pypi/eliot