Skip to main content

Real-time log streaming SDK for Python

Project description

slogx

Real-time log streaming SDK for Python. (Read more on GitHub!)

Installation

pip install slogx

Usage

import os
from slogx import slogx

# Start the log server (is_dev prevents accidental prod use)
slogx.init(
    is_dev=os.environ.get('ENV') != 'production',
    port=8080,
    service_name='my-service'
)

# Log anywhere in your app
slogx.info("Server started", {"env": "dev"})
slogx.debug("Debug info", {"key": "value"})
slogx.warn("Warning message")
slogx.error("Error occurred", {"code": 500})

Features

  • WebSocket-based real-time log streaming
  • Structured logging with metadata (file, line, function)
  • Stack trace capture for all log levels
  • Zero-config setup for local development

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

slogx-0.0.1.tar.gz (1.6 kB view details)

Uploaded Source

Built Distribution

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

slogx-0.0.1-py3-none-any.whl (1.5 kB view details)

Uploaded Python 3

File details

Details for the file slogx-0.0.1.tar.gz.

File metadata

  • Download URL: slogx-0.0.1.tar.gz
  • Upload date:
  • Size: 1.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for slogx-0.0.1.tar.gz
Algorithm Hash digest
SHA256 69b7dc1254cde7aa49cffc11bee33f37e0a16033708bf2790fb41adbd2b03566
MD5 f3f67932a8b03cad12c4dbed19059c82
BLAKE2b-256 9c7696891bd6d3b283d7be1040762afb533bbe43f825e5d28a95220268d5a4c6

See more details on using hashes here.

File details

Details for the file slogx-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: slogx-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 1.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for slogx-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 61d9ed6202346922878612bf52aab16d80f1b95d8aeb0101c5f9d7ecda20e407
MD5 6f76f2381bf44c1ffdaeeb8e0e6d3434
BLAKE2b-256 995af9445a5b37057bcbd591d6ea3536debac55469556e7903500f79d7c85305

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