Skip to main content

Some logging enhancements, such as log error with traceback, redirect STDOUT,

Project description

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.

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

log_soso-1.0.2.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.2-py2.py3-none-any.whl (14.8 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for log_soso-1.0.2.tar.gz
Algorithm Hash digest
SHA256 108dd1dfe82ce0d0f7630b91c2b673314d2768f3eae067a5cd31efa7b1773f41
MD5 028e72a7d48b56f5a62271e05febf98e
BLAKE2b-256 d45258e6a30a2f9c229d8499704404debf802b14febd7463d7dfc221a42e9c01

See more details on using hashes here.

File details

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

File metadata

  • Download URL: log_soso-1.0.2-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.1.0 CPython/3.10.12

File hashes

Hashes for log_soso-1.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8200a1c6580a32c9d4d71bf686219f35ff0d6e2bdc90ec976d2babf5ce6fc3e0
MD5 b6f59fd0c119effafb9cfd549cb56fcd
BLAKE2b-256 43fa4b989e97d5d662bf1fa8e434c687f1426aaf355dcae631af60173cfbce6e

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