Python Logging

Open-source Python projects categorized as Logging | Edit details

Top 23 Python Logging Projects

  • Sentry

    Sentry is cross-platform application monitoring, with a focus on error reporting.

    Project mention: APM/Logging Service ? | reddit.com/r/dotnet | 2022-05-12

    I've recently found Sentry, which has a self-hosted option. I've not used it in production, though, so I can't speak for how good it is.

  • PySnooper

    Never use print for debugging again

    Project mention: Top python libraries/ frameworks that you suggest every one | reddit.com/r/Python | 2022-03-28

    snoop or pysnooper

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • Loguru

    Python logging made (stupidly) simple

    Project mention: The Boilerplate for Logging in Python | reddit.com/r/Python | 2022-03-15

    This? First time to hear about it. Thanks!

  • sigma

    Generic Signature Format for SIEM Systems

    Project mention: Elastic for security | reddit.com/r/elasticsearch | 2022-02-07

    Try this instead: https://github.com/SigmaHQ/sigma

  • viztracer

    VizTracer is a low-overhead logging/debugging/profiling tool that can trace and visualize your python code execution.

    Project mention: Memray is a memory profiler for Python by Bloomberg | news.ycombinator.com | 2022-04-20

    Actually it has explicit support for async task based reporting:

    https://github.com/gaogaotiantian/viztracer#async-support

  • structlog

    Structured Logging for Python

    Project mention: Top python libraries/ frameworks that you suggest every one | reddit.com/r/Python | 2022-03-28

    structlog

  • abseil-py

    Abseil Common Libraries (Python)

    Project mention: Reflecting on the Shake Build System | news.ycombinator.com | 2021-11-06

    > Sounds a lot like Nix's philosophy of totally sandboxed/declarative package builds

    They are similar but I think of Nix as being closer to Dockerfiles than to Bazel. Nix describes how to compose and build things, of multiple build systems, in a unixy environment. It sandboxes things and runs commands in those things like `make install` and then pulls the files those commands generates out and uses them for other things. This is very close to how people use Dockerfiles but very different to how someone would go about using Bazel. Bazel's main selling points are that it allows you to describe how your software is built by using application level concepts. Bazel has `library`, `binary`, and `test`. Regardless of what the language we're talking about any two programmers will probably know what these high level concepts mean and, due to conventions in rules, any developer - regardless if they have experience in the language in question - can understand what is going on.

    Bazel is also much finer grained than something like Nix. For example, the NixPkg for abseil-py is defined here: https://github.com/NixOS/nixpkgs/blob/nixos-21.05/pkgs/devel...

    The BUILD files for abseil-py are found in the repo. Something you'll notice is that there isn't a single build target for all of abseil-py. Instead, each python module or "library" has it's own target: https://github.com/abseil/abseil-py/blob/master/absl/BUILD#L...

    This allows for some cool stuff when deploying your software. Suppose you import just the flags module from this repo. That means that your built `py_binary` artifact will only contain just the modules that you're actually importing. You can also see the dependancy graph for all of your source code by talking to Bazel's query API. Find a bug in a library? You can now instantly query every single `binary` that those source files went into without false positives. That's just an example of something you may want to do but really you now have a way to query the dep graph for all languages and tools so the sky is the limit.

    > instead of needing a monorepo with every piece of software you can just grab a reproducible build from nixpkgs

    You also don't need a monorepo for Bazel to work. You can use `http_archive` or `git_repository` to load specific WORKSPACEs. For example: https://abseil.io/docs/cpp/quickstart#set-up-a-bazel-workspa...

    Also bzlmod is being worked on (a package manager that automates this stuff). This also has provisions for running all of the `_test` targets on deps after they're compiled by your toolchain and on your hardware. This validates that all importing and compiling worked as expected (which most build systems can't accommodate).

  • SonarLint

    Deliver Cleaner and Safer Code - Right in Your IDE of Choice!. SonarLint is a free and open source IDE extension that identifies and catches bugs and vulnerabilities as you code, directly in the IDE. Install from your favorite IDE marketplace today.

  • Raven

    Raven is the legacy Python client for Sentry (getsentry.com) — replaced by sentry-python

    Project mention: How do you configure a Sentry raven client in a development environment to not send exceptions and still work? | reddit.com/r/codehunter | 2022-03-26

    INSTALLED_APPS = ( 'raven.contrib.django.raven\_compat')RAVEN_CONFIG = { 'dsn': 'https://*****@app.getsentry.com/PORT\_NUMBER',} We read here that we can just use an empty string DSN property. Though when we run python manage.py raven test as depicted here we get:

  • logbook

    A cool logging replacement for Python.

  • sentry-python

    The official Python SDK for Sentry.io

    Project mention: Has anyone packaged FastAPI middleware so it can be used easily for multiple projects? | reddit.com/r/FastAPI | 2021-08-19

    You can see how Sentry does it, https://github.com/getsentry/sentry-python/blob/master/sentry_sdk/integrations/asgi.py

  • logzero

    Robust and effective logging for Python 2 and 3.

  • Eliot

    Eliot: the logging system that tells you *why* it happened

  • python-colorlog

    A colored formatter for the python logging module

    Project mention: Output colored logs from django through supervisor and docker-compose | reddit.com/r/codehunter | 2022-04-25

    [supervisord]http\_port=/var/tmp/supervisor.sock ; (default is to run a UNIX domain socket server)stdout\_logfile=/dev/stdoutstdout\_logfile\_maxbytes=0stderr\_logfile=/dev/stderrstderr\_logfile\_maxbytes=0[program:gunicorn\_core\_service]#environment=myapp\_VENV=/opt/myapp/venv/environment=PYTHONPATH=/opt/myapp/myappServer/myappServercommand = /opt/myapp/venv/bin/gunicorn wsgi -b 0.0.0.0:8000 --timeout 90 --access-logfile /dev/stdout --error-logfile /dev/stderrdirectory = /opt/myapp/myappServeruser = rootautostart=trueautorestart=trueredirect\_stderr=truestdout\_logfile=/dev/stdoutstdout\_logfile\_maxbytes=0stderr\_logfile=/dev/stderrstderr\_logfile\_maxbytes=0[program:django-celery]command=/opt/myapp/venv/bin/python ./manage.py celery --app=myappServer.celeryapp:app worker -B --loglevel=INFOdirectory=/opt/myapp/myappServernumprocs=1stdout\_logfile=/dev/stdoutstdout\_logfile\_maxbytes=0stderr\_logfile=/dev/stderrstderr\_logfile\_maxbytes=0redirect\_stderr=trueautostart=trueautorestart=truestartsecs=10[program:nginx]command=nginx -g "daemon off;"#user = rootautostart=trueautorestart=trueredirect\_stderr=truestdout\_logfile=/dev/stdoutstdout\_logfile\_maxbytes=0stderr\_logfile=/dev/stderrstderr\_logfile\_maxbytes=0 5. Since docker can only log once process, the logs of all the process of my container are forwarded to /dev/stdout and /dev/stderr 6. And I use colorlog as color formatter to colorize Django logs:

  • snoop

    A powerful set of Python debugging tools, based on PySnooper (by alexmojaki)

    Project mention: Top python libraries/ frameworks that you suggest every one | reddit.com/r/Python | 2022-03-28

    snoop or pysnooper

  • zentral

    Zentral is an open-source solution for infrastructure monitoring and endpoint event stream processing. It provides build-in orchestration of macOS security components (Santa, Osquery, et-al.), event correlation and event management. It consolidates its features with various data store backends (ElasticStack, Azure Log Analytics, Splunk, et-al.).

    Project mention: [HIRING] Remote Senior Software Engineer, Backend at Zentral | reddit.com/r/PythonJobs | 2022-05-12

    Zentral is an event-oriented platform to manage endpoints in enterprise environments, with a primary focus on macOS devices. We are helping IT departments meet their automation, reporting, and security goals.

  • daiquiri

    Python library to easily setup basic logging functionality

  • pygogo

    A Python logging library with superpowers

  • django-guid

    Inject an ID into every log message from a Django request. ASGI compatible, integrates with Sentry, and works with Celery

    Project mention: Ask HN: Good Python projects to read for modern Python? | news.ycombinator.com | 2021-12-26
  • SnitchDNS

    Database Driven DNS Server with a Web UI

  • assisted-log-enabler-for-aws

    Assisted Log Enabler for AWS - Find AWS resources that are not logging, and turn them on.

    Project mention: Assisted Log Enabler for AWS - Find resources that are not logging, and turn them on. | reddit.com/r/aws | 2021-06-16
  • aiologger

    Asynchronous logging for Python and asyncio

    Project mention: Asyncio: Logging Library | reddit.com/r/learnpython | 2022-04-13

    I'm using Asyncio for a project and looking for a great logging library to combine with. Should I use the standard library logging? Found this library (https://github.com/async-worker/aiologger), but looks like it's outdated. Any help/recommendations are welcome! Thanks

  • ansible-role-promtail

    🔧 Ansible role for deploying promtail

  • qlogging

    Beautifully colored, quick and simple Python logging

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2022-05-12.

Python Logging related posts

Index

What are some of the best open-source Logging projects in Python? This list will help you:

Project Stars
1 Sentry 30,880
2 PySnooper 15,019
3 Loguru 11,743
4 sigma 4,988
5 viztracer 2,028
6 structlog 1,999
7 abseil-py 1,877
8 Raven 1,679
9 logbook 1,420
10 sentry-python 1,223
11 logzero 1,020
12 Eliot 962
13 python-colorlog 749
14 snoop 748
15 zentral 617
16 daiquiri 326
17 pygogo 271
18 django-guid 241
19 SnitchDNS 160
20 assisted-log-enabler-for-aws 92
21 aiologger 68
22 ansible-role-promtail 45
23 qlogging 43
Find remote jobs at our new job board 99remotejobs.com. There are 8 new remote jobs listed recently.
Are you hiring? Post a new remote job listing for free.
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com