Loguru Ever
Use and replace logging to loguru everywhere!
Loguru used all over the world. | 全世界都在用 Loguru
Installation
You can install Loguru Ever from PyPI:
pip install EverLoguru
Usage
Loguru Ever is a simple package that replaces the standard logging module with loguru. Loguru is a modern and easy-to-use logging library for Python. With Loguru Ever, you can use loguru features in any module that uses logging, without changing any code.
To use Loguru Ever, you just need to import it and call the replace_logging function at the beginning of your program. This will replace the logging module in the sys.modules dictionary with loguru. After that, you can use loguru as usual.
For example, if you have a module called foo.py that uses logging:
import logging
logger = logging.getLogger(__name__)
def bar():
logger.info("Hello from bar")
You can use Loguru Ever in your main script like this:
import ever_loguru
ever_loguru.install_class()
import foo
foo.bar()
This will output:
2021-12-15 16:13:49.123 | INFO | foo:bar:5 - Hello from bar
Metadata
Release files for EverLoguru 1.1.6
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 | |
|---|---|---|---|---|
| EverLoguru-1.1.6.tar.gz | 3.5 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| EverLoguru-1.1.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.8 kB
Release files / EverLoguru-1.1.6.tar.gz
| Download URL | EverLoguru-1.1.6.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
96d5d234ac966acd5314793a97220ff85faf56fa93642b98ce4edf642a5c19d2
|
|
BLAKE2b-256 checksum How to use checksums |
0fdca0538b9ebca6caca7e2f12b2e114ee35f94dab6b27a0f0332922396a3671
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / EverLoguru-1.1.6-py3-none-any.whl
| Download URL | EverLoguru-1.1.6-py3-none-any.whl |
|---|---|
| Size | 4.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5130a8eab1f841b2e8d211e6f4cabb6f7557257f7871678b44880a073527be45
|
|
BLAKE2b-256 checksum How to use checksums |
3050379d84607a96dffd03545438945a38e90e8febc1d98a810c532e31c257c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for EverLoguru 1.1.6
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.