Skip to main content

A module to simplify logging

Project description

Argus - Simple Logging Made for a Simple Person (me)

I start many projects wanting to log things well, but often started with just print statements since they're just so easy. Then I'd hit some bug and instead of backing up, just add more and more print statements until I sorted the problem out, invariably forgetting to remove one somewhere, later.

I needed something better so I'd get around to adding logging at the begging instead of halfway through once I'd been bitten. But I know myself, so it had to be "almost as easy as just print()".

And thus Argus was born. It started out as basically just a quick auto-config of the logging system to now it can automatically log both to console (in color!) and to structured log files all without adding any code beside the starting import.

import argus
argus.debug("Why did this fail here?")
argus.error("Total bummer of an error: widget=$widget", widget=value)

A handful of config options are available, the most important of which can be set via environment variables so you can get the style and levels of logging you want without additional code overhead.

Full documentation with the logging commands, function decorators, and config options here: Argus-logging full documentation

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

argus_logging-2.3.3.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

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

argus_logging-2.3.3-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file argus_logging-2.3.3.tar.gz.

File metadata

  • Download URL: argus_logging-2.3.3.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.12.6 Windows/11

File hashes

Hashes for argus_logging-2.3.3.tar.gz
Algorithm Hash digest
SHA256 e36ccfedee2ed8fe5c2f5900b479c504a8d171dede251f9f91d378b077860364
MD5 2cfec6ed9e1ade2e8ec7e8bc1b97538e
BLAKE2b-256 1f633c7614cd940101f0e69604f342497d985ff3f592b1b800bf19ee8dfd9f5b

See more details on using hashes here.

File details

Details for the file argus_logging-2.3.3-py3-none-any.whl.

File metadata

  • Download URL: argus_logging-2.3.3-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.4 CPython/3.12.6 Windows/11

File hashes

Hashes for argus_logging-2.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9dc070cb1e89304e54b67c4c3dda0153a86d2e5e8db6ea9d267372f453220847
MD5 4be0cba4df6d2e397d7b19034c7a91c7
BLAKE2b-256 6e5b52b06e9e43331b9addf083a4ec377be47e18900937dd459b349bfa508a4c

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