An ultra simple, modern, JSON-based logging console and handler combo
Project description
EZPubSub
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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8be8d575d96f0b81e56de72302aa3b3410ed3292cc6c5738904fa9782403e441
|
|
| MD5 |
f14edf123a67975c0955133d5c6788a9
|
|
| BLAKE2b-256 |
f9520aeb7f23ba466055dc55cb72f0174bd64daedbbe27c07267260de2249925
|
Provenance
The following attestation bundles were made for ezlogconsole-0.2.0.tar.gz:
Publisher:
release.yml on edward-jazzhands/ezlogconsole
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ezlogconsole-0.2.0.tar.gz -
Subject digest:
8be8d575d96f0b81e56de72302aa3b3410ed3292cc6c5738904fa9782403e441 - Sigstore transparency entry: 991011121
- Sigstore integration time:
-
Permalink:
edward-jazzhands/ezlogconsole@3d6e1906e3f5cda8ac935f6808de4d830a40abaf -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/edward-jazzhands
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3d6e1906e3f5cda8ac935f6808de4d830a40abaf -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7675f46d0f77b6b8e4fb29eac3701bd0e5bed37a7f7affb5832568a5dbc72c9f
|
|
| MD5 |
cddcc7af7c4dc7ff9f4e57c3ba06e046
|
|
| BLAKE2b-256 |
776af4724b5662d4e16e3ffec02a0361e918caab6f63eb5737b9200757b0efb3
|
Provenance
The following attestation bundles were made for ezlogconsole-0.2.0-py3-none-any.whl:
Publisher:
release.yml on edward-jazzhands/ezlogconsole
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ezlogconsole-0.2.0-py3-none-any.whl -
Subject digest:
7675f46d0f77b6b8e4fb29eac3701bd0e5bed37a7f7affb5832568a5dbc72c9f - Sigstore transparency entry: 991011128
- Sigstore integration time:
-
Permalink:
edward-jazzhands/ezlogconsole@3d6e1906e3f5cda8ac935f6808de4d830a40abaf -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/edward-jazzhands
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@3d6e1906e3f5cda8ac935f6808de4d830a40abaf -
Trigger Event:
push
-
Statement type: