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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb9f914be287acbe69eee214e8ad30ef23e90259cceaa0ca485cc6b5a33eeb59
|
|
| MD5 |
1ae935f633faff17a96521357d8ff2fe
|
|
| BLAKE2b-256 |
e4bb0a489b3a1d37274c6c74431cc614653d7e7ea372426e7ffd494833c5c9c6
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aa8199eb08254e21db3d2650899b1806145b9c6e21a1708b59f7ae5675b62bc0
|
|
| MD5 |
20dbe5d5edb6b4e415ec75c15660e4c7
|
|
| BLAKE2b-256 |
a0484aea2c56dc982f661a9714ca84f1889c81cc4cee8dd0342f2f58756f6b57
|