Top 23 Python Logging Projects
-
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.
-
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.
-
This? First time to hear about it. Thanks!
-
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-20Actually it has explicit support for async task based reporting:
-
Project mention: Top python libraries/ frameworks that you suggest every one | reddit.com/r/Python | 2022-03-28
structlog
-
> 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.
-
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:
-
-
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
-
-
-
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:
-
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-12Zentral 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.
-
-
-
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 -
-
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 -
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
-
-
Python Logging related posts
- APM/Logging Service ?
- Monthly 'Shameless Self Promotion' thread - 2022/05
- Sentry.io outage
- Creating a condition/rule builder for users to save rules - unsure how to model this in Django
- Ask HN: Who is hiring? (May 2022)
- ntfy is a tool to send push notifications to your Android phone via simple PUT/POST requests - I've added so many features, and many of you have contributed. I thought I'd share what's new. ✨
- Deploy a Flask REST API with Fauna and Authentication on Koyeb
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 |
Are you hiring? Post a new remote job listing for free.