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.1.tar.gz (13.5 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.1-py2.py3-none-any.whl (14.7 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: log_soso-1.0.1.tar.gz
  • Upload date:
  • Size: 13.5 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.1.tar.gz
Algorithm Hash digest
SHA256 b039479e051ab260ce1bd2e13c0b4694b6c4c2660fb5566a052f976424d545d0
MD5 d763c3bd89c115d6e882a8692de5d1b4
BLAKE2b-256 7774d628846d300d2ca585ad89378d7d49972ee081213e519501a1f45e4eb80e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: log_soso-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 14.7 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.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9726e6edc1f16bedea649a925ed8929cd7a8f85d96b9e09d4474afcb7a2a123b
MD5 a90d87de9b1294f486c6c7fbf37cba71
BLAKE2b-256 341cf855813a41a907fbb4d9e48eb6f23b58ef207a084a8685659e75e9856483

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