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

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: log_soso-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 c81eaf642815d3d9116789ad3378f76e8f7a3383f768afc4476b94eed2540249
MD5 97ac12ff1627210c5e2acfa3cefc9f0f
BLAKE2b-256 9dc4712533893c74e5ffd739d18558936dac7554f1beaeaf40e11108bb8c55e8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: log_soso-1.0.0-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.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c29222205057d4258a761d67befa75076dd05bfe7d2cc1c57a898b738e0c01e8
MD5 7acdf6c20659119078dce2d4a8a6c73d
BLAKE2b-256 778bc7848d24d8eadadd4ce16514c03de8eb88f2d93dbb8e23d47d410b3b6aa1

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