Loguru all over the world. | 全世界都在用 Lo~guru~~
Reason this release was yanked:
Logger.name doesn't not working
Project description
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 ever-loguru
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
Project details
Release history Release notifications | RSS feed
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
Hashes for EverLoguru-1.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 436b2e41b4b4b7235e045aece5909bda1bccc385c32677acc7a5899d29847229 |
|
MD5 | fac0b8028d99466333fbc75bb3599122 |
|
BLAKE2b-256 | 5ed9177f95f1b11cc870c7662465d971ae74d7b8229aad441edc2ad0675a3010 |