Skip to main content

log_soso

Some logging enhancements, such as log error with traceback, redirect STDOUT, STDERR to log, and more.

Functions

log_error

Log an error with traceback:

log_stdout

Redirect STDOUT to log

log_stderr

Redirect STDOUT to log

Classes

StreamToLogger

File-like stream object that redirects writes to a logger instance. Use like:

with StreamToLogger(logging.getLogger(), logging.DEBUG) as sob:
	pprint(object, stream=sob)

PrintPassthru

A context manager which temporarily directs loggin output to real stdout.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

log_soso-1.0.4.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

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

log_soso-1.0.4-py2.py3-none-any.whl (14.8 kB view details)

Uploaded Python 2Python 3

File details

Details for the file log_soso-1.0.4.tar.gz.

File metadata

  • Download URL: log_soso-1.0.4.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for log_soso-1.0.4.tar.gz
Algorithm Hash digest
SHA256 0add86e5be38efffc71ac7f747a2e1769565955bd5147f4c21af93aad9069955
MD5 26952f753580139b8aefd63740a08796
BLAKE2b-256 e0649d4b9f1acaa298a17fdddd945d63bb70c6c1591f1dbaaac2f8821b32e84a

See more details on using hashes here.

File details

Details for the file log_soso-1.0.4-py2.py3-none-any.whl.

File metadata

  • Download URL: log_soso-1.0.4-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.4

File hashes

Hashes for log_soso-1.0.4-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5705c80a8cc7727e599f54d66e5b8f47e00f201ede1616f14a7d933c0802da8f
MD5 40c480bc2b9055b0bb339f167d740811
BLAKE2b-256 db1cd6dc8f754c1ada5fbc9a3eb94dae41572518975292a83b9799054f2e9223

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page