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.2.0.tar.gz (7.6 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.2.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ezlogconsole-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8be8d575d96f0b81e56de72302aa3b3410ed3292cc6c5738904fa9782403e441
MD5 f14edf123a67975c0955133d5c6788a9
BLAKE2b-256 f9520aeb7f23ba466055dc55cb72f0174bd64daedbbe27c07267260de2249925

See more details on using hashes here.

Provenance

The following attestation bundles were made for ezlogconsole-0.2.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.2.0-py3-none-any.whl.

File metadata

  • Download URL: ezlogconsole-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.0 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7675f46d0f77b6b8e4fb29eac3701bd0e5bed37a7f7affb5832568a5dbc72c9f
MD5 cddcc7af7c4dc7ff9f4e57c3ba06e046
BLAKE2b-256 776af4724b5662d4e16e3ffec02a0361e918caab6f63eb5737b9200757b0efb3

See more details on using hashes here.

Provenance

The following attestation bundles were made for ezlogconsole-0.2.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