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

Uploaded Python 2Python 3

File details

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

File metadata

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

File hashes

Hashes for log_soso-1.0.3.tar.gz
Algorithm Hash digest
SHA256 cb9f914be287acbe69eee214e8ad30ef23e90259cceaa0ca485cc6b5a33eeb59
MD5 1ae935f633faff17a96521357d8ff2fe
BLAKE2b-256 e4bb0a489b3a1d37274c6c74431cc614653d7e7ea372426e7ffd494833c5c9c6

See more details on using hashes here.

File details

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

File metadata

  • Download URL: log_soso-1.0.3-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.13.3

File hashes

Hashes for log_soso-1.0.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 aa8199eb08254e21db3d2650899b1806145b9c6e21a1708b59f7ae5675b62bc0
MD5 20dbe5d5edb6b4e415ec75c15660e4c7
BLAKE2b-256 a0484aea2c56dc982f661a9714ca84f1889c81cc4cee8dd0342f2f58756f6b57

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