Log Stacker
A colorful and less settings logger, based on the built-in package
logging.
What is this?
Contain the following features with the minimum settings.
- stream logger(Colorful Stream)
- file logger(strip color tags)
- remote logger(In progress)
How to use?
Step 1
- Install
pip install log_stacker
- Import module in your entry point at the top
entry point: startup python file, such as
main.pyrun.pystart_api.pyetc.
Step 2
- Basic setup
"""
start_api.py
"""
from log_stacker import LogStacker
LogStacker.logging(__file__)
or
- Advance setup
"""
start_api.py
"""
from log_stacker import LogStacker
LogStacker.logging(
entry_point='path/to/your/log',
stream_level=LogStacker.WARNING,
file_level=LogStacker.INFO,
remote_level=None
)
Step 3
You can start logging in anywhere of your project!
Note: If you got an initialized warning, please make sure you initial LogStacker correctly at the begging of the file your are running.
"""
test.py which is called by start_api.py
"""
from log_stacker import LogStacker
try:
1/0
except Exception as e:
LogStacker.critical(e)
LogStacker.error(e)
LogStacker.warning(e, msg='It is a warning!')
LogStacker.info('I wanna print something here!')
LogStacker.debug()
History
| # | date | version |
|---|---|---|
| 0 | 2021/02/07 | v0.0.1 |
v0.0.1
- Beta version
If you like my work, please consider buying me a coffee or PayPal
Thanks for your support! Cheers! 🎉
Metadata
Release files for LogStacker 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| LogStacker-0.0.1.tar.gz | 5.8 kB | Without provenance | Details for LogStacker-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| LogStacker-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for LogStacker-0.0.1-py3-none-any.whl |
Total release size: 12.5 kB
Release files / LogStacker-0.0.1.tar.gz
| Download URL | LogStacker-0.0.1.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f78c242a09cac8f8242bd142285cc2eff5d14ef41b3441dd65a6ba3aa9a0da4
|
|
BLAKE2b-256 checksum How to use checksums |
3557de308734f213bab811fa57e355ffaae818635e533b57bad732c27a57260a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.1
|
Release files / LogStacker-0.0.1-py3-none-any.whl
| Download URL | LogStacker-0.0.1-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
95f31a88b1997809181579f7982e46a5a1a13bf6d7f3ba74d61bc36d63243c50
|
|
BLAKE2b-256 checksum How to use checksums |
e854017bcc9bf4e901cb6935a36abe085186ac862312619c698492eb07653b94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.24.0 setuptools/52.0.0 requests-toolbelt/0.9.1 tqdm/4.52.0 CPython/3.9.1
|
Security for LogStacker 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.