Skip to main content

Loguru all over the world. | 全世界都在用 Lo~guru~~

Project description

Loguru Ever

PyPI version GitHub Latest

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

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

EverLoguru-1.1.6.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

EverLoguru-1.1.6-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file EverLoguru-1.1.6.tar.gz.

File metadata

  • Download URL: EverLoguru-1.1.6.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for EverLoguru-1.1.6.tar.gz
Algorithm Hash digest
SHA256 96d5d234ac966acd5314793a97220ff85faf56fa93642b98ce4edf642a5c19d2
MD5 9a5f2f5363f0738f3ecab26cd42548e7
BLAKE2b-256 0fdca0538b9ebca6caca7e2f12b2e114ee35f94dab6b27a0f0332922396a3671

See more details on using hashes here.

File details

Details for the file EverLoguru-1.1.6-py3-none-any.whl.

File metadata

  • Download URL: EverLoguru-1.1.6-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for EverLoguru-1.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 5130a8eab1f841b2e8d211e6f4cabb6f7557257f7871678b44880a073527be45
MD5 47029fa4250988e23e19d9cfafe98ee1
BLAKE2b-256 3050379d84607a96dffd03545438945a38e90e8febc1d98a810c532e31c257c0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page