Glisten
Simple python logging library - because I write this code in every project.
Usage
import glisten
log = glisten.log.Logger('.log')
log.warn('A warning message')
produces:
>>> A warning message.
You can set verbose to False to suppress terminal messages (though it will always log to disk):
import glisten
log = glisten.log.Logger('.log', verbose=False)
log.warn('Terminal can\'t see this')```
will produce no terminal output, but `.log` will contain `[Warning] Terminal can't see this`.
Newlines get nicely formatted:
import glisten
log = glisten.log.Logger('.log')
log.warn("""This is a long message. It spans multiple lines. I like pizza.""")
produces:
[Warning] This is a long message. | It spans multiple lines. | I like pizza.
## Log types
- warn
- error
- deprecation
## Deprecations
`glisten` also provides a deprecation wrapper. One can use it as follows:
import glisten log = glisten.log.Logger('.log')
@log.deprecate def my_deprecated_function(): return
Any time this function is called, glisten will output `Function "my_deprecated_function" is deprecated.`, and log it to file.
Metadata
Release files for glisten 1.0.2
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 |
|---|---|---|---|---|
| glisten-1.0.2.tar.gz | 3.9 kB | Without provenance | Details for glisten-1.0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| glisten-1.0.2-py3-none-any.whl | Python 3 | none | any | Details for glisten-1.0.2-py3-none-any.whl |
Total release size: 8.0 kB
Release files / glisten-1.0.2.tar.gz
| Download URL | glisten-1.0.2.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a426132a3f3aae7e5185922eabc7dd3b340efda85879716475145894f8ce2720
|
|
BLAKE2b-256 checksum How to use checksums |
2e556ff0a614c0ac56fac3dacac2afe04896d83130c092344c01ff199bab0277
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.8
|
Release files / glisten-1.0.2-py3-none-any.whl
| Download URL | glisten-1.0.2-py3-none-any.whl |
|---|---|
| Size | 4.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6b66373c23848e9ab5782444161b7f99546abef2155c1c05678a5a16bd4149b6
|
|
BLAKE2b-256 checksum How to use checksums |
158da4c5d18bc867a6daacda7e2ed167d25f34ca51555e90708bf2b252a74caf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.8
|
Security for glisten 1.0.2
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.