Skip to main content

An ultra simple, modern, JSON-based logging console and handler combo

Project description

EZPubSub

badge badge badge badge

An ultra-simple, modern, and JSON-based logging console with an included logging handler for the standard library's logging module. You can also just copy paste the code for the logging handler if you don't want to add it as a project dependency. Either way, it'll connect the standard library logger to the console, and pretty-print the logs in a nice, readable format.

This first alpha release is only designed with python log records in mind, but under the hood its just a simple TCP server that decodes JSON and prints it to the console. This means any process from any language can send logs to the console. This will be better supported in the future.

Install as tool

Use either UV or PipX

uv tool install ezlogconsole
pipx install ezlogconsole

Install into project/venv

pip install ezlogconsole

Or, with UV:

uv add ezlogconsole

Quick Start

Logging Handler

from ezlogconsole import JsonSocketHandler

# Create a handler
handler = JsonSocketHandler()

# Add it to the logger
logger = logging.getLogger()
logger.addHandler(handler)

# The handler doesn't need a formatter since we are using JSON

# Now the EZ console is a receiver for your logs
logger.info("Hello, world!")

Logging Receiver

After you've installed the EZLogConsole as a tool using either UV or PipX, you can run it from the command line:

ezlogconsole

This will start the EZLogConsole receiver on the default port (9020).

You can change the port by passing a different port number:

ezlogconsole --port 9021

For more options on both the console and the handler, see the docs.

Documentation

Full docs: Click here


License

MIT License. See LICENSE for details.

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

ezlogconsole-0.1.0.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

ezlogconsole-0.1.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file ezlogconsole-0.1.0.tar.gz.

File metadata

  • Download URL: ezlogconsole-0.1.0.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ezlogconsole-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dc4a57764071c0d71c48b4243dd20eac2394c3524e3e8a15e995dcbcd157624d
MD5 d4e4c44490a49c138744d448cce1f64e
BLAKE2b-256 acf6c3da0641fe76f8bed3f81943f593ce033663468effbb8238b51243fa7dba

See more details on using hashes here.

Provenance

The following attestation bundles were made for ezlogconsole-0.1.0.tar.gz:

Publisher: release.yml on edward-jazzhands/ezlogconsole

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ezlogconsole-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: ezlogconsole-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ezlogconsole-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b6ec22335b5aa7e8b84de2d57dcce4d5505ba52850629ba39583b07ebbd43ea
MD5 67401d14eaef101692093fc92d8e1c10
BLAKE2b-256 e60a4fa996fad2a1e722946826471c697ac0a08a8be58bb7a24fa9ed018d0ad9

See more details on using hashes here.

Provenance

The following attestation bundles were made for ezlogconsole-0.1.0-py3-none-any.whl:

Publisher: release.yml on edward-jazzhands/ezlogconsole

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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